Valhalla Legends Forums Archive | Battle.net Bot Development | [c++]using proxies

AuthorMessageTime
mentalCo.
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?
June 20, 2004, 7:03 PM
shadypalm88
[quote author=mentalCo. link=board=17;threadid=7354;start=0#msg66338 date=1087758219]
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]That looks more like HTTP proxy connections.

You should check out the SOCKS 4 protocol specification. 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.
June 20, 2004, 7:44 PM
mentalCo.
word.
June 20, 2004, 7:55 PM
botmaster
You should take a look at this example for socks4. http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=7999&lngWId=3
June 20, 2004, 9:20 PM

Search