How do I use a TIdHTTP with a HTTP Proxy?

Previous  Top  Next

You will often find the values you for setting HTTP proxy information for your network in Internet Explorer |Tools|Internet Options..|Connections|Lan Settings.  If you can find them there, ask your network administrator for this information.

 

For Indy 8.0

 

Set the the properties as described below:

 

In Delphi, do the following:

 

HTTP1.Request.ProxyServer := [the DNS name of the proxy server or its IP address]

HTTP1.Request.ProxyPort := [port the HTTP the HTTP proxy listens on]

HTTP1.Request.ProxyUsername := [username if the proxy requires authentication]

HTTP1.Request.ProxyPassword := [password if the proxy requires authentication]

 

In C++Builder, do the following:

 

HTTP1->Request->ProxyServer = [the DNS name of the proxy server or its IP address]

HTTP1->Request->ProxyPort = [the DNS name of the proxy server or its IP address]

HTTP1->Request->ProxyUsername = [username if the proxy requires authentication]

HTTP1->Request->ProxyPassword = [password if the proxy requires authentication]

 

For Indy 9.0 and Indy 10

 

HTTP1.ProxyParams.ProxyServer := [the DNS name of the proxy server or its IP address]

HTTP1.ProxyParams.ProxyPort := [port the HTTP the HTTP proxy listens on]

HTTP1.ProxyParams.ProxyUsername := [username if the proxy requires authentication]

HTTP1.ProxyParams.ProxyPassword := [password if the proxy requires authentication]

 

In C++Builder, do the following:

 

HTTP1->Request->ProxyServer = [the DNS name of the proxy server or its IP address]

HTTP1->Request->ProxyPort = [the DNS name of the proxy server or its IP address]

HTTP1->Request->ProxyUsername = [username if the proxy requires authentication]

HTTP1->Request->ProxyPassword = [password if the proxy requires authentication]