Re: BasicAuthentication

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

"Constantine Hvan" <darkjudicat…@mail.ru> wrote in message
news:733A40599276E240darkjudicat…@mail.ru...

> 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
BasicAuthentication.

> 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;

Gambit

Replies

In response to

BasicAuthentication posted by Constantine Hvan on Thu, 10 Jul 2003