Mailing Lists
![]() |
|
![]() |
|
cURL ![]() ![]() ![]() curlpp mailing list Archives
Re: [cURLpp] [CURLOPT_COOKIELIST]
From: Igor Mironchick <imironchick_at_gmail.com>
Date: Sat, 20 Oct 2007 13:55:02 +0400 "This option was not available at compile time." With #if LIBCURL_VERSION_NUM >= 0x070e01 cURLpp successfully set all cookies and send them to the www.google.com. But after request libcurll verbose that google.com set some cookies when example07 write empty list of cookie. Look: >example07 * Added cookie GMAIL_AT="EXPIRED" for domain google.com, path /, expire 21474836 47 * Added cookie LSID="I like you GOOGLE" for domain google.com, path /, expire 21 47483647 * Added cookie YAHOO_COOKIE="I like you yahoo, too" for domain yahoo.com, path / , expire 0 * About to connect() to www.google.com port 80 (#0) * Trying 72.14.205.99... * Socket is not connected * Trying 72.14.205.103... * connected * Connected to www.google.com (72.14.205.103) port 80 (#0) > GET / HTTP/1.1 Host: www.google.com Accept: */* Cookie: LSID=I like you GOOGLE; GMAIL_AT=EXPIRED < HTTP/1.1 302 Found < Location: http://www.google.com.by/ < Cache-Control: private * Added cookie PREF="ID=90d9eda826dcf633:TM=1192873303:LM=1192873303:S=ptozHeHl7 _rWZEBq" for domain google.com, path /, expire 1255945303 < Set-Cookie: PREF=ID=90d9eda826dcf633:TM=1192873303:LM=1192873303:S=ptozHeHl7_r WZEBq; expires=Mon, 19-Oct-2009 09:41:43 GMT; path=/; domain=.google.com < Content-Type: text/html < Server: gws < Content-Length: 222 < Date: Sat, 20 Oct 2007 09:41:43 GMT < <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>302 Moved</TITLE></HEAD><BODY> <H1>302 Moved</H1> The document has moved <A HREF="http://www.google.com.by/">here</A>. </BODY></HTML> * Connection #0 to host www.google.com left intact Cookies from cookie engine: I can't anderstand why this happened. But I observe problem like this in my own project that using cURLpp. I can't read CookieList. And I have to have one cURLpp::Easy header for every connection in the session, because I can't save session cookie. Options like COOKIEFILE or COOKIEJAR does not approach me. Jean-Philippe Barrette-LaPierre wrote: On Friday 19 October 2007 2:41 am, Igor Mironchick wrote:Why to not change #ifdef CURLOPT_COOKIELIST typedef cURLpp::OptionTrait< std::string, CURLOPT_COOKIELIST > CookieList; #else #ifdef CURLPP_ALLOW_NOT_AVAILABLE typedef cURLpp::NotAvailableOptionTrait< std::string > CookieList; #endif #endif with #if LIBCURL_VERSION_NUM >= 0x070e01 typedef cURLpp::OptionTrait< std::string, CURLOPT_COOKIELIST > CookieList; #else #ifdef CURLPP_ALLOW_NOT_AVAILABLE typedef cURLpp::NotAvailableOptionTrait< std::string > CookieList; #endif #endifI Agree. For a CookieList example, check the examples/example07.cc -- Regards, Igor Mironchick, Intervale © #ICQ 492-597-570
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info