cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-php mailing list Archives

Re: cURL and secure server

From: Michael Sisson <msisson_at_webcoat.com>
Date: Tue, 09 Mar 2004 08:37:29 -0600

So if you use curlopt_cookiejar and cookiefile, then curl will
automatically get the cookie on login and use it in the request?

Also, how do you handle the sending (posting) and recieving of data?
The way I understand it, the $result = curl_exec($ch); would put
the info recieved in $result?
Which in this case would be xml data and then I could just parse $result?

Thanks for the help
-Michael

Daniel Stenberg wrote:

>On Tue, 9 Mar 2004, Michael Sisson wrote:
>
>
>
>>How do you send the cookie? CookieJar? What would you do?
>>
>>
>
>Since you would first need to figure out what cookie to send, I suppose you
>need to do some kind of login or something.
>
>Then I would use CURLOPT_COOKIEJAR when doing the login to get the cookies
>from the site and store them in a file.
>
>Then I'd use CURLOPT_COOKIEFILE in the subsequent request to use the
>previously retrieved cookie(s).
>
>
>
Received on 2004-03-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET