🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #893

automatic Basic Authentication

#893
From: Enrique
Date: Sat, 26 Nov 2005 16:06
27 lines
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.
Technical Details
Message-ID: <438887db@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,991b7e70246c2c68,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Enrique" <enridp@yahoo.com.ar>
From: "Enrique" <enridp@yahoo.com.ar>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: automatic Basic Authentication
Date: Sat, 26 Nov 2005 13:06:18 -0300
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 200.43.99.72
Message-ID: <438887db@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1133021147 200.43.99.72 (26 Nov 2005 08:05:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail