Results 1 to 3 of 3

Thread: Winsock and Cookies

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2004
    Posts
    146

    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!

  2. #2
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2004
    Posts
    146
    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
  •  



Click Here to Expand Forum to Full Width