Home » U++ Library support » U++ MT-multithreading and servers » Windows authenticated web page load
Windows authenticated web page load [message #50261] |
Thu, 06 September 2018 13:31  |
 |
koldo
Messages: 3435 Registered: August 2008
|
Senior Veteran |
|
|
Hello Oblivion
I wanted to load the contents of a https web page in an intranet with windows authentication.
Is there a similar sample to do it? How would you do it?
Best regards
Iñaki
|
|
|
Re: Windows authenticated web page load [message #50263 is a reply to message #50261] |
Thu, 06 September 2018 15:23   |
Oblivion
Messages: 1206 Registered: August 2007
|
Senior Contributor |
|
|
Hello Koldo,
Quote:Hello Oblivion
I wanted to load the contents of a https web page in an intranet with windows authentication.
Is there a similar sample to do it? How would you do it?
In general?
I had to (several times in the past).
1) If you are trying to access from a web site via intranet (and Windows Authentication, using SSO or credential prompt) browsers (FF, Chromium an IE) already support this.
IIRC there was even a FF extention that can simplify the browser configuration.
2) If you want to load the content of a https site programatically, using NTLM/Kerberos (which was what I had to do), don't bother trying anything else, and simply use libcurl https://curl.haxx.se/
It has a very simple interface, good documentation, and plenty of examples. (I'm sorry I can't provide an actual example of my past use cases, as I don't have access to them ATM).
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Thu, 06 September 2018 15:30] Report message to a moderator
|
|
|
|
Re: Windows authenticated web page load [message #50266 is a reply to message #50264] |
Thu, 06 September 2018 18:47   |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Hi,
HttpRequest support Basic and Digest authentication.
HttpRequest q;
q.Url("https://...");
q.User("login", "password");
// q.Digest(); // if the server use Digest authentication
String s = q.Execute();
regards
omari.
|
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 15:28:39 CEST 2025
Total time taken to generate the page: 0.01300 seconds
|