Re: http authentication

Giganews Newsgroups
Subject: Re: http authentication
Posted by:  Ben Taylor [Team Indy] (to_b…@yahoo.com)
Date: Wed, 15 Jun 2005

What issue do you get with indy10?

(also answered privately, copied here for completeness).

var
  h:TIdHTTP;
  s:string;
begin
  h:=TIdHTTP.Create(nil);
  try
  h.Request.Username:='luggage';
  h.Request.Password:='12345';
  h.Request.BasicAuthentication:=True;
  s:=h.Get('http://192.168.1.100/');
  finally
  Sys.FreeAndNil(h);
  end;
end;

> Any ideas?  I really need to get this working.  I can't use Indy 10
since
> stops working after a few hours.

Replies

In response to

http authentication posted by Ross Levis on Wed, 15 Jun 2005