|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[ curl-Bugs-3398164 ] Unable to access site without an (unused!) --cookie-jar
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 25 Aug 2011 22:52:48 +0200
Bugs item #3398164, was opened at 2011-08-25 22:33
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
(that's stock curl from Mac OS X 10.7.1 "Lion")
I'm using curl to log into a site via an HTTP form, following subsequent redirects. If I pass "--cookie-jar -" and effectively ignore the stored cookie, everything works as hoped. If I don't, it doesn't. I tried both ways using --trace-ascii. WITHOUT a jar, I have a series of "Set-Cookie" results, followed by a site warning that my browser doesn't accept cookies. WITH a jar, I have a similar series of Set-Cookies except there is a "== Info: Added cookie" or "== Info: Replaced cookie" in-between them.
Since I'm not actually doing anything with the cookies dumped to stdout, the best guess I have is that "--cookie-jar" also enables the acceptance or use of cookies itself in curl. If this is the case, I think the documentation and guides could be updated to reflect that. If not, what explains this behavior?
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
curl doesn't activate "the cookie engine" unless you tell it to. One way
Do you have any suggested wording you think we should add to the "-c,
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info