Are you using the exact same URL with IE and the component ? Have you tried with the sample program HttpTst provided with ICS ? Which ICS version are you ising ? There are several authentication scheme. NTLM has been added not so long ago. Be sure to use the latest ICS (V5 or V5) available from my website.
Another idea: maybe the camera software use cookies. You must grab the cookie by first going to the main page and then you can access the image. -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "xmedia" <[EMAIL PROTECTED]> To: <twsocket@elists.org> Sent: Sunday, June 18, 2006 6:22 PM Subject: [twsocket] HttpCli user authentication whent get() >I tried to set the Username and Password field in my HttpCli component when > accessing password protected IP camera without any success. I always get > 401 > error. But in IE I can enter the same user name and password in the pop=up > window to access. I am wondering whether I did anything wrong. My code is: > > HttpCli1->Username="xxxx"; > > HttpCli1->Password="xxxx"; > > HttpCli1->URL+"192.168.1.98/image.hpg"; > > HttpCli1->Get(); > > > > Any help is appreciated! Thanks in advance. > > -WAng > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be