cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

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 15:33:11 -0500

Bugs item #3398164, was opened at 2011-08-25 15:33
Message generated for change (Tracker Item Submitted) made by astrostl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3398164&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: astrostl (astrostl)
Assigned to: Daniel Stenberg (bagder)
Summary: Unable to access site without an (unused!) --cookie-jar

Initial Comment:
curl 7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM SSL libz

(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?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3398164&group_id=976
Received on 2011-08-25

These mail archives are generated by hypermail.

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

File upload with ASP.NET