Eder Gusatto
2008-07-09 21:01:25 UTC
Hello all,
I'm trying to connect through a Squid proxy but I just can't do it.
I'm using INDY 10.1.5 with Delphi 7 and TIdHttp with the following proxy
params:
with IdHTTP.ProxyParams do
begin
ProxyServer := sProxyServer;
ProxyPort := iProxyPort;
ProxyUsername := sProxyUser;
ProxyPassword := sProxyPass;
end;
I'm also have included IdAuthenticationSSPI, IdAuthenticationDigest and
idAuthentication to the uses clause for automatic detection and setting of
NTLM and Basic athentication.
When I try to IdHTTP.Get('http://www.google.com') it doesn't pass through
the proxy and the resulting headers are:
Server: squid/2.6.STABLE15+PatchSets-20070903
Date: Wed, 09 Jul 2008 20:49:39 GMT
Content-Type: text/html
Content-Length: 1389
Expires: Wed, 09 Jul 2008 20:49:39 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
X-Cache: MISS from {server name}
Via: 1.0 {server name}:3128 (squid/2.6.STABLE15+PatchSets-20070903)
Proxy-Connection: close
The original server name was replaced for {server name} for privacy
concerns.
Any clue about this problem?
Have I missed something?
Is it possible to do it with INDY or do I need another compenent? If I do,
what would it be, any suggestions?
Thanks in advance.
I'm trying to connect through a Squid proxy but I just can't do it.
I'm using INDY 10.1.5 with Delphi 7 and TIdHttp with the following proxy
params:
with IdHTTP.ProxyParams do
begin
ProxyServer := sProxyServer;
ProxyPort := iProxyPort;
ProxyUsername := sProxyUser;
ProxyPassword := sProxyPass;
end;
I'm also have included IdAuthenticationSSPI, IdAuthenticationDigest and
idAuthentication to the uses clause for automatic detection and setting of
NTLM and Basic athentication.
When I try to IdHTTP.Get('http://www.google.com') it doesn't pass through
the proxy and the resulting headers are:
Server: squid/2.6.STABLE15+PatchSets-20070903
Date: Wed, 09 Jul 2008 20:49:39 GMT
Content-Type: text/html
Content-Length: 1389
Expires: Wed, 09 Jul 2008 20:49:39 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
X-Cache: MISS from {server name}
Via: 1.0 {server name}:3128 (squid/2.6.STABLE15+PatchSets-20070903)
Proxy-Connection: close
The original server name was replaced for {server name} for privacy
concerns.
Any clue about this problem?
Have I missed something?
Is it possible to do it with INDY or do I need another compenent? If I do,
what would it be, any suggestions?
Thanks in advance.
--
_________________________________________
Éder Gusatto
Likedin: http://www.linkedin.com/in/egusatto
_________________________________________
_________________________________________
Éder Gusatto
Likedin: http://www.linkedin.com/in/egusatto
_________________________________________