I had some problems doing it with http://user:[EMAIL PROTECTED], mutible login
tries
so i turned of the Auth stuff in httpcli and did it in the BeforeHeaderSend
HttpCli->Options << httpoNoBasicAuth << httpoNoNTLMAuth;
void __fastcall TForm::HttpCliBeforeHeaderSend(TObject *Sender,
const AnsiString Method, TStrings *Headers)
{
AnsiString sCombo = UserName + ":" + PassWord;
Headers->Add("Authorization: Basic " + EncodeStr(encBase64,
sCombo));
}
On Fri, 07 Mar 2008 11:53:19 +0100, Bob Reeves <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have managed to get a small app working (C++ Builder 4.0) that
> retrieves an image from a webcam with built in HTTP server and ftp's it
> up to a web site. However I am going to be allowing internet access to
> the camera and need to set a user name and password to limit access. My
> app will now need to fill in a user name and password in order to
> retrieve the image.
>
> Anyone willing to help me figure out how to send a user name and
> password to the camera using the HTTP client?
>
> Thanks
> Bob
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be