Re: BasicAuthentication

Giganews Newsgroups
Subject: Re: BasicAuthentication
Posted by:  Remy Lebeau (TeamB) (gambit…
Date: Thu, 10 Jul 2003

"Constantine Hvan" <darkjudicat…> wrote in message

> IdHTTP1->Request->BasicAuthentication = false;
> IdHTTP1->Head("http://username:password@url");

Why are you setting BasicAuthentication to false in the first place?  You
are passing the username/password to the server in such a manner that it is

> can I switch BasicAuthentication to true somehow at runtime?

You already know how, because you are already setting it to false in code.
Just set it to true instead:

    IdHTTP1->Request->BasicAuthentication = true;



In response to

BasicAuthentication posted by Constantine Hvan on Thu, 10 Jul 2003