-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File argument to --cookie doesn't behave as expected #666
Comments
I can see how that is confusing. What if we change the way it is documented to: diff --git a/docs/curl.1 b/docs/curl.1
index beb9194..cc9f07c 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -216,8 +216,8 @@ read previously stored cookie lines from, which should be us
if they match. Using this method also activates the cookie engine which will
make curl record incoming cookies too, which may be handy if you're using this
in combination with the \fI-L, --location\fP option. The file format of the
-file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
-cookie file format.
+file to read cookies from should be plain HTTP headers (Set-Cookie style) or
+the Netscape/Mozilla cookie file format.
The file specified with \fI-b, --cookie\fP is only used as input. No cookies
will be written to the file. To store cookies, use the \fI-c, --cookie-jar\fP |
That sounds good to me! |
jay
added a commit
that referenced
this issue
Feb 19, 2016
Bug: #666 Reported-by: baumanj@users.noreply.github.com
Thanks, landed in a11c5f3. FYI you can see the latest information for that option online: -b, --cookie. |
Way to close out issue 666 with expediency! 👼 |
jay
added a commit
that referenced
this issue
Feb 19, 2016
Bug: #666 Reported-by: baumanj@users.noreply.github.com
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to the man page, the file format of the file to read cookies from should be plain HTTP headers or the Netscape/Mozilla cookie file format.
I did this
Passed a file argument to
--cookie
of the form:I expected the following
curl
to send the cookie headers. I realized after reading the source thatcurl
expects the file to contain:It would be nice if the docs were clearer or if
curl
accepted either format.curl/libcurl version
operating system
The text was updated successfully, but these errors were encountered: