 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bo Berglund Guest
|
Posted: Tue Feb 24, 2004 8:04 pm Post subject: What is the proper way to pass a proxy with IdHTTPD? |
|
|
I am trying to retrieve a file from a web server using IdHTTPD.
The server is Apache and has a user/password protected directory where
the file lives.
So I have set IdHTTPD up like this:
IdHTTP.Request.BasicAuthentication := true;
IdHTTP.Request.Username := 'user';
IdHTTP.Request.Password := 'password';
This works fine and I can retrieve the file OK.
But when I am behind an ISA firewall I seem to be unable to get a
message through. How should it be done? This is what I did:
IdHTTP.ProxyParams.BasicAuthentication := true
IdHTTP.ProxyParams.ProxyPort := 8080;
IdHTTP.ProxyParams.ProxyServer := <ISA server name>;
IdHTTP.ProxyParams.ProxyUserName := <a local domain user>;
IdHTTP.ProxyParams.ProxyPassword := <his domain password>;
When I do the GET there is an exception with message:
"HTTP/1.1 502 Proxy Error (The ISA Server denies the specified URL)"
Note that if the URL is typed into Internet Explorer it all works OK.
A server login is shown and then the file appears.
What have I done wrong here? The docs are muddy to me, I would like a
simple "do this" advice.
Thanks,
Bo
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|