|
-
May 25th, 2004, 08:43 PM
#1
Thread Starter
Addicted Member
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!
-
May 26th, 2004, 02:23 AM
#2
Frenzied Member
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.
-
May 26th, 2004, 07:08 AM
#3
Thread Starter
Addicted Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|