logo       

bagder: curl/docs/libcurl curl_easy_getinfo.3, 1.19, 1.20 curl_easy_setopt.: msg#00029

web.curl.cvs

Subject: bagder: curl/docs/libcurl curl_easy_getinfo.3, 1.19, 1.20 curl_easy_setopt.3, 1.117, 1.118

Update of /cvsroot/curl/curl/docs/libcurl
In directory labb:/tmp/cvs-serv14776/docs/libcurl

Modified Files:
curl_easy_getinfo.3 curl_easy_setopt.3
Log Message:
Peteris Krumins added CURLOPT_COOKIELIST and CURLINFO_COOKIELIST, which is a
simple interface to extracting and setting cookies in libcurl's internal
"cookie jar". See the new cookie_interface.c example code.


Index: curl_easy_getinfo.3
===================================================================
RCS file: /cvsroot/curl/curl/docs/libcurl/curl_easy_getinfo.3,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- curl_easy_getinfo.3 11 Jun 2005 22:04:41 -0000 1.19
+++ curl_easy_getinfo.3 27 Jul 2005 22:17:14 -0000 1.20
@@ -134,6 +134,13 @@
how many times libcurl successfully reused existing connection(s) or not. See
the Connection Options of \fIcurl_easy_setopt(3)\fP to see how libcurl tries
to make persistent connections to save time. (Added in 7.12.3)
+.IP CURLINFO_COOKIELIST
+Pass a pointer to a 'struct curl_slist *' to receive a linked-list of all
+cookies cURL knows (expired ones, too). Don't forget to
+\fIcurl_slist_free_all(3)\fP the list after it has been used.
+If there are no cookies (cookies for the handle have not been enabled or
+simply none have been received) 'struct curl_slist *' will be set to
+point to NULL.
.SH RETURN VALUE
If the operation was successful, CURLE_OK is returned. Otherwise an
appropriate error code will be returned.

Index: curl_easy_setopt.3
===================================================================
RCS file: /cvsroot/curl/curl/docs/libcurl/curl_easy_setopt.3,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- curl_easy_setopt.3 13 Jul 2005 09:46:37 -0000 1.117
+++ curl_easy_setopt.3 27 Jul 2005 22:17:14 -0000 1.118
@@ -654,6 +654,12 @@
loads all cookies, independent if they are session cookies are not. Session
cookies are cookies without expiry date and they are meant to be alive and
existing for this "session" only.
+.IP CURLOPT_COOKIELIST
+Pass a char * to a cookie string. Cookie can be either in Netscape / Mozilla
+format or just regular HTTP-style header (Set-Cookie: ...) format. The passed
+string will get modified so make sure it's writable. If cURL cookie engine
+was not enabled it will enable its cookie engine. Passing a magic string
+\&"ALL" will erase all cookies known by cURL.
.IP CURLOPT_HTTPGET
Pass a long. If the long is non-zero, this forces the HTTP request to get back
to GET. usable if a POST, HEAD, PUT or a custom request have been used

_______________________________________________
http://cool.haxx.se/mailman/listinfo/curl-commits



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise