On 28-Oct-07, at 11:13 AM, Aman Deep wrote:

Hi,

I am still unable to run the attached code successfully even with 7.17.0. Basically I am trying to build and execute curl-7.17.0/docs/ examples/cookie_interface.c It fails in the function static void print_cookies(CURL *curl) at line number 28 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies);
It says :
Curl curl_easy_getinfo failed: a libcurl function was given a bad argument

I have Mac OS X and Xcode.


This is the C++ wrapper mailing-list. You should send your message to the curl-library mailing-list:

http://cool.haxx.se/mailman/listinfo/curl-library

Is there something wrong with system settings/preferences. I am really clueless. I have tried all kludges but nothing worked.
Any help/clue would be greatly appreciated.

Best Regards
Aman

On 10/22/07, Aman Deep <[EMAIL PROTECTED]> wrote:
Hi Igor,

Thanks a Lot for the prompt reply. I am using  libcurl version 7.16.4
I'll try to  build  using 7.17.0
Thanks again

Sincerely
Aman


On 10/22/07, Igor Mironchick < [EMAIL PROTECTED] > wrote:
Hi, Aman.

Aman Deep wrote:
Hi Folks,

I am unable to run the attached code successfully.
I'll be grateful if you can give me a clue about whats wrong.

Code that you attach work fine. I'm using lobcurl version 7.17.0. Look:

That is verbose messages from libcurl:

* About to connect() to www.google.com port 80 (#0)
*   Trying 72.14.215.104... * connected
* Connected to www.google.com ( 72.14.215.104) port 80 (#0)
> GET / HTTP/1.1
Host: www.google.com
Accept: */*

< HTTP/1.1 302 Found
< Location: http://www.google.com.by/
< Cache-Control: private
* Added cookie PREF="ID=30534b087893f269:TM=1193033257:LM=1193033257:S=P6UGl9YdX
A8m1I_k" for domain google.com, path /, expire 1256105257
< Set-Cookie: PREF=ID=30534b087893f269:TM=1193033257:LM=1193033257:S=P6UGl9YdXA8 m1I_k; expires=Wed, 21-Oct-2009 06:07:37 GMT; path=/; domain=.google.com
< Content-Type: text/html
< Server: gws
< Content-Length: 222
< Date: Mon, 22 Oct 2007 06:07:37 GMT
<
* Connection #0 to host www.google.com left intact
* Added cookie PREF="hello google, i like you very much!" for domain google.com,
 path /, expire 1193064596
* Added cookie OLD_PREF="3d141414bf4209321" for domain google.com, path /, expir
e 2147483647
* Re-using existing connection! (#0) with host www.google.com
* Connected to www.google.com ( 72.14.215.104) port 80 (#0)
> GET / HTTP/1.1
Host: www.google.com
Accept: */*
Cookie: OLD_PREF=3d141414bf4209321; PREF=hello google, i like you very much!

< HTTP/1.1 302 Found
< Location: http://www.google.com.by/
< Cache-Control: private
* Replaced cookie PREF="ID=aba978ffe83559fa:TM=1193033258:LM=1193033258:S=fnRGBF
Z0M0zE1zce" for domain google.com, path /, expire 1256105258
< Set-Cookie: PREF=ID=aba978ffe83559fa:TM=1193033258:LM=1193033258:S=fnRGBFZ0M0z E1zce; expires=Wed, 21-Oct-2009 06:07:38 GMT; path=/; domain=.google.com
< Content-Type: text/html
< Server: gws
< Content-Length: 222
< Date: Mon, 22 Oct 2007 06:07:38 GMT
<
* Connection #0 to host www.google.com left intact


And here message of your code:

<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>
Cookies, curl knows:
[1]: .google.com TRUE / FALSE 1256105257 PREF ID=30534b087893f269:TM=1193033257:LM=1193033257:S=P6UGl9YdXA8m1I_k
Erasing curl's knowledge of cookies!
Cookies, curl knows:
(none)
-----------------------------------------------
Setting a cookie "PREF" via cookie interface:
Cookies, curl knows:
[1]: .google.com TRUE / FALSE 1193064596 PREF hello google, i like you very much! [2]: .google.com TRUE / FALSE 2147483647 OLD_PREF 3d141414bf4209321 <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>

--
Regards,
Igor Mironchick,
Intervale ©
#ICQ 492-597-570


_______________________________________________
cURLpp mailing list
[email protected]
http://www.rrette.com/mailman/listinfo/curlpp

_______________________________________________
cURLpp mailing list
[email protected]
http://www.rrette.com/mailman/listinfo/curlpp

Reply via email to