Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: IdHTTP Get() With Authorization?

www.cryer.info
Managed Newsgroup Archive

Re: IdHTTP Get() With Authorization?

Subject:Re: IdHTTP Get() With Authorization?
Posted by:"Slagert" (slage..@slagert.com)
Date:Sat, 30 Dec 2006 13:04:22

I'm using Indy 10.1.5 which I upgraded the default D7 Indy version with
yesterday. The http download is pretty simple, but when using basic
authorization I get the 401 return code for all subsequent get() attempts
after the first. The first is successful but from there on it's 401 if I
change the URL and Auth info.

-Andy

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:45963490$1@newsgroups.borland.com...
>
> "Slagert" <slagert@slagert.com> wrote in message
> news:45960c4e$1@newsgroups.borland.com...
>
>> I'm using the following code snippet in a procedure with Indy 10 &
> D7
>
> Which build of Indy 10 exactly?  When was the last time you updated
> it?
>
>> This works OK with authorization but if I change the URL and
>> User/password and call the above code again I'm getting a 401
>> exception.
>
> Have you tried calling Request.Clear() first?
>
>
> Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive