BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What is the proper way to pass a proxy with IdHTTPD?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Bo Berglund
Guest





PostPosted: Tue Feb 24, 2004 8:04 pm    Post subject: What is the proper way to pass a proxy with IdHTTPD? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.