help sending http packets thru winsock
hi
i have been trying to make a myspace program in vb6 to collect huge donation asap:o but the problem is im confused cause i dont know how to send the data because the chunks are in 2 parts and i have not done anything like this b4. so can someone guide me. the chunks are here
Code:
POST /index.cfm?fuseaction=login.process HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://www.myspace.com
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: secure.myspace.com
Content-Length: 656
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: MSCulture=IP=172.134.46.211&IPCulture=en-IN&PreferredCulture=en-IN&Country=IN&ForcedExpiration=0&timeZone=0&USRLOC=QXJlYUNvZGU9MCZDaXR5PUNhbGN1dHRhJkNvdW50cnlDb2RlPUlOJkNvdW50cnlOYW1lPUluZGlhJkRtYUNvZGU9MCZMYXRpdHVkZT0yMi41Njk3JkxvbmdpdHVkZT04OC4zNjk2JlBvc3RhbENvZGU9JlJlZ2lvbk5hbWU9Mjg%3D&clientTimeZone=13.5; SessionDDF1=52054e5b216fe6d29b978bb45a077e1986b5f36074882682....
__VIEWSTATE=%2FwEPDwUJNTMzMjE3MzI5ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgUwY3RsMDAkTWFpbiRTcGxhc2hEaXNwbGF5JGN0bDAwJFJlbWVtYmVyX0NoZWNrYm94BTBjdGwwMCRNYWluJFNwbGFzaERpc3BsYXkkY3RsMDAkTG9naW5fSW1hZ2VCdXR0b24%3D&NextPage=&ctl00%24Main%24SplashDisplay%24ctl00%[email protected]&ctl00%24Main%24SplashDisplay%24ctl00%24Password_Textbox=MYPASSWORD&ctl00%24Main%24SplashDisplay%24ctl00%24nexturl=&ctl00%24Main%24SplashDisplay%24ctl00%24apikey=&ctl00%24Main%24SplashDisplay%24ctl00%24ContainerPage=&ctl00%24Main%24SplashDisplay%24ctl00%24Login_ImageButton.x=32&ctl00%24Main%24SplashDisplay%24ctl00%24Login_ImageButton.y=16
both chunks are send by 1 winsock without expireing the sesson. how can i do that. i really need to get this done asap.
thanks
Re: help sending http packets thru winsock
nobody is going to help me here?
Re: help sending http packets thru winsock
are trying to do this in vb6? or .NET?
I login to myspace through system.net.httpwebrequest myself :)
you don't need all the stuff like __VIEWSTATE=% in your POST header, just email=YOUR_EMAIL&password=YOUR_PASSWORD (NOTE: in a http type request you must replace illegal characters with the hex equivalent ( eg: @ becomes %40, this applies to the email & password )
also the host shouldn't be Host: secure.myspace.com it should be Host: login.myspace.com
the UserAgent is normally "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1" i found this to be important in my requests.
Re: help sending http packets thru winsock
i think i ready mention that on top but im going to do it again. yes its VB6 that im trying this on.
this help is needed not to make a spam program for myspace. i will have the program out here so everyone can see its not spam program. this is a helping tools that let myspace users login and do things faster without having enter there user name and pass everytime they login.
Re: help sending http packets thru winsock
Quote:
Originally Posted by newlife
this is a helping tools that let myspace users login and do things faster without having enter there user name and pass everytime they login.
If entering your name and password to too time consuming, then perhaps use of the site should be reconsidered.
How long can it take? 10 seconds?