How to make zipdl work with proxy? I ask this because when I run a link it says socket unreachable

Please help
Posted on 2001-12-24 22:40:18 by chamajid
The answer is: zipdownload isn't designed to work with proxy server. period.
I coded this tiny app when I started learning win32asm so I made it as easy as possible.
Posted on 2001-12-26 09:21:25 by Iczelion
If you really want to make it work with a proxy, this is how:
Instead of connecting to the realy host (say www.google.com), you connect to the proxy server. Usually with a different port as well (8080 by default). The HTTP request is almost the same, but you need to tell the proxy which host to connect to. This can be done in two ways:
1. include it into the URI,
first line of the request will not be:

GET /somefolder/somefile.dat HTTP/X.X, but:
GET [url]http://www.google.com/somefolder/somefile.dat[/url] HTTP/X.X

2. add an host header to the request:
GET /somefolder/somefile.dat HTTP/X.X

Host: [url]www.google.com[/url]
...other headers...

Don't use both at the same time, the host header will be ignored then. These requests are perfectly legal when connected to the real host too, but then using the hostname in the request is optional. Obviously, it's required for the proxy server.

So the only thing you have to do is connect to the proxyserver instead of the host, and adding the hostname to the request with one of the two methods described above.

Posted on 2001-12-26 16:56:38 by Thomas