Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages
Started by Enrique
Sat, 26 Nov 2005 16:06
automatic Basic Authentication
Author: Enrique
Date: Sat, 26 Nov 2005 16:06
Date: Sat, 26 Nov 2005 16:06
27 lines
1874 bytes
1874 bytes
Hi !
I'm trying to access a webpage with a Basic Authentication, automatically,
without the user intervention.
I can't use the following url to access the protected webpage:
username:password@website
because an IE patch (http://windowsxp.mvps.org/IEFAQ.htm#urlpassword
I tried to do it with Headers too:
//--------------------------------------------------------------------------
-----------------
AnsiString userPass = "npyNzljYng6eWF6MjEzNA==" ; //username:password
(base64)
TVariant URL = {"www.webpage.com"};
TVariant Headers = {"Authorization: Basic "+ userPass + "\r\n"};
CppWebBrowser1->Navigate2(&URL, TNoParam(), TNoParam(),
TNoParam(),&Headers);
//--------------------------------------------------------------------------
-----------------
it works, but if the webpage has some image, then the Authentication popup
is shown.
I was searching and I saw this is a common problem, and no one posted a
solution.
Any ideas?
I'm trying to access the setup page from my router, so I can reset it
programatically.
thanks !
enrique.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads