PHP CURL Cookie remote login ?

Discussion in 'PHP' started by thesurface, Oct 8, 2011.

  1. #1
    Lets say i have cookie.txt

    how can i login via cookie.txt and curl to remote site?

    i need to remote send that cookies ...
     
    thesurface, Oct 8, 2011 IP
  2. goodboy5569

    goodboy5569 Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Include this in your cURL code

    curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
    curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
    PHP:
     
    goodboy5569, Oct 9, 2011 IP