-
Notifications
You must be signed in to change notification settings - Fork 846
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
Support cookies in code snippets #4327
Comments
Hi @purefan Thanks for reporting this. We'll look into it and get back to you. |
I was just poking around in the native app to see if it made any difference for #1228. I was pleased to see that there's now an option to manage cookies, but surprised that there doesn't seem to be any way to manipulate them in the snippet API. For cases where cookies are unwanted, being able to add something to the pre-request script would be perfect. |
Seconding the original request here. Another use-case is when creating docs via Postman where OAuth session info is stored in a cookie. Being able to publish examples for those that include the cookie name=value would be great. |
Honestly, I would call this a bug, not a feature request. I just wasted a bunch of time trying to troubleshoot a nonexistent issue because the generated cURL snippet does not replicate the request sent by Postman, and I was assuming that they would be identical (why else would this functionality exist?). I can't find a single place in Postman where it shows the actual, complete request it's really sending to the server once cookies get involved. If #1228 is going to keep sitting around unresolved, please at least show the user the actual request being sent. |
At the very least, a message in the GENERATE CODE SNIPPETS window that says "cookies are not generated" would've saved me several minutes of wondering if the cookies weren't being sent because I had the wrong domain/path. |
This would be very helpful, I'm testing APIs that require cookies and had to include them into the command manually |
Please fix this |
YES PLEASE! |
This should be a must have... |
upvote |
App Details:
Issue Report:
Steps to reproduce the problem
From within Postman, query an endpoint that returns a Set-Cookie header.
Postman will save these cookies and you can see them if you click on
Cookies
.Send a request to an endpoint that requires these cookies, but in your headers list do not add a
Cookie
header. The request works.Click on
Code
, the code generated does not include the cookies sent.Apparently the
Code
generator only takes the params from the request tab, but Postman sends cookies regardless of the entry not existing in the headers tab. I was able to confirm this behavior by filtering traffic in wireshark.If I dont add a cookie header, I dont want Postman to send cookies.
The text was updated successfully, but these errors were encountered: