[DUG] web service

Jeremy North jeremy.north at gmail.com
Wed Sep 14 13:28:16 NZST 2005


IE has actually removed support for this. This is non-standard and I
wouldn't count on it working.

try

varHTTPRIO.HTTPWebNode.UserName := 'User';
varHTTPRIO.HTTPWebNode.Password := '****';

untested

cheers,
Jeremy


On 9/14/05, James Sugrue <jamessugrue at xtra.co.nz> wrote:
> Does the
> 
> username:password at http://localhost/Service
> 
> notation work ?
> 
> -----Original Message-----
> From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
> Behalf Of Leigh Wanstead
> Sent: Wednesday, 14 September 2005 12:47 p.m.
> To: delphi at ns3.123.co.nz
> Subject: [DUG] web service
> 
> Hello everyone,
> 
> I use THTTPRIO and here is the test code.
> 
> var
>  varHTTPRIO: THTTPRIO;
> begin
>  varHTTPRIO := THTTPRIO.Create(nil);
>  try
>    varHTTPRIO.URL := 'http://localhost/Service';
>    (varHTTPRIO as ServiceWS).hello('');
>  finally
>    FreeAndNil(varHTTPRIO);
>  end;
> end;
> 
> May I ask how to supply user name and password without bring Windows login
> dialog?
> 
> TIA
> 
> Regards
> Leigh
> 
> 
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
> 
> 
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>



More information about the Delphi mailing list