Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: mentalCo. on June 20, 2004, 02:03 PM

Title: [c++]using proxies
Post by: 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?
Title: Re:[c++]using proxies
Post by: shadypalm88 on June 20, 2004, 02:44 PM
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.
Title: Re:[c++]using proxies
Post by: mentalCo. on June 20, 2004, 02:55 PM
word.
Title: Re:[c++]using proxies
Post by: botmaster on June 20, 2004, 04:20 PM
You should take a look at this example for socks4. http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=7999&lngWId=3