when connected to a socks4 proxy i was told to send "CONNECT ip:port HTTP/1.1\r\n\r\n"
the problem with that is it doesnt work. how do you use a proxy?
Quote from: mentalCo. on June 20, 2004, 02:03 PM
when connected to a socks4 proxy i was told to send "CONNECT ip:port HTTP/1.1\r\n\r\n"
the problem with that is it doesnt work. how do you use a proxy?
That looks more like HTTP proxy connections.
You should check out the SOCKS 4 protocol specification (http://archive.socks.permeo.com/protocol/socks4.protocol). You just handshake with the SOCKS server and once it says things are OK, you start sending packets to Battle.Net just like you would with no proxy involved.
word.
You should take a look at this example for socks4. http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=7999&lngWId=3