Hi all,

I am wondering what is the method to connect to a given ip and port to send and receive messages using a HTTP proxy. Can anyone care to explain to me? I did a search on the topic in this forum, but the topic all seem to be inrelevant from what I wish to achieve. Thanks in advance..

Regards,
Victor
Posted on 2004-04-22 09:40:55 by roticv
Without proxy you would send your HTTP request directly to the target server,
for instance


GET http://board.win32asmcommunity.net HTTP/1.0
Accept: */*
Host: board.win32asmcommunity.net
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)


If you want to use a proxy, the request must be sent to the IP:port
of the proxy server rather than to the win32asmcommunity.net directly.
Some proxies require authentication, see RFC2617 for details,
and will return HTTP/1.0 407 Proxy Authentication Required
instead of HTTP/1.0 200 OK .
If this is the case, add credentials to the header, e.g.


GET http://board.win32asmcommunity.net HTTP/1.0
Accept: */*
Host: board.win32asmcommunity.net
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Proxy-Authorization: Basic blebleble
Proxy-Connection: Keep-Alive


where blebleble stands for your login:password, base-64 encoded.
I used HTTP communication tool
HTTPER to debug my proxy communication scripts.
Posted on 2004-04-22 11:24:08 by vit$oft
Actually I would be using the http proxy to connect to the icq server, so will the above method suitable for the following usage. Thanks in advance.

Regards,
Victor
Posted on 2004-04-22 11:33:45 by roticv
If you want to use ICQ by proxy i don't need a http proxy but a sock4 proxy. I am attached some example. When you start socks4.exe with suitable parameters, you must to change you ICQ program options to use sock4 server with IP to computer where you will run socks4.exe. I recommend you to make a search for "sock4" in www.win32asmcommunity.net

you can download socks4.exe (or C++ source) from here
http://www.demosten.com/cgi-bin/download.pl?src=socks4
Posted on 2004-09-08 06:45:55 by martidim
Actually I already did it with socks4 proxy.
Posted on 2004-09-08 07:33:50 by roticv