PDA

Click to See Complete Forum and Search --> : Winsock Proxy


lainmaster
Dec 11th, 2006, 11:13 PM
Yo, i play this runescape game (java made) and would like to know all the messages between the client and server.
Dunno much about this, but I put a winsock contrl on my form named wsk

wsk.RemoteHost=192.168.1.106
wsk.RemotePort=888
wsk.Close
wsk.Listen

then when i hit the "Go" in my internet explorer (i chose to use a proxy with the remotehost and port) i get the connection request, I accept it and then get this data

GET http://www.runescape.com/ HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
Accept-Language: es
Cookie: RSORIGIN=windowsclient; serverlist_order=WPML
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)
Host: www.runescape.com
Proxy-Connection: Keep-Alive

that's what i get when i try to go to "www.runescape.com" in my IE... but then the IE doesn't show the site. So i guess that the IE is sending that data to me and i should send it to runescape.com, recive from runescape.com and send that to the IE? If so, how do I do that??

DigiRev
Dec 11th, 2006, 11:25 PM
So i guess that the IE is sending that data to me and i should send it to runescape.com, recive from runescape.com and send that to the IE? If so, how do I do that??

Yup.

It would take awhile to explain, but it's really not that complicated.

I think your best option would be to look at other examples already made.

Here's one:
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=22649&lngWId=1

And here's some other results:
http://www.pscode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?optSort=Alphabetical&txtCriteria=http+proxy&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=50&blnResetAllVariables=TRUE&lngWId=1&B1=Quick+Search

And if you run into any problems you can ask your questions here. :)