-
Winsock and Cookies
Hi,
My Winsock application is working great, with one exception.
I'm using the POST method to send data to a site. My problem: this site identifies users by their cookies. The cookies contain information that is critical for the site to interpret. If I don't have the cookie, the POST won't work.
Is there any way I can get Winsock to accept cookies, or read cookies?
Thanks!
-
You would have to send a GET request first to request the page, as if you were loading it, when you get the return header it will contain the cookie you need in it in the Set-Cookie: field.
-
So, instead of POSTing my data to "numbers.php", I will use the GET method to get "numbers.php"? Or would I use GET to get the header info of the referrer to numbers.php?