postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.82k stars 837 forks source link

Cookies are not exposed in the code generator snippet #5077

Open ohadmuch opened 6 years ago

ohadmuch commented 6 years ago

Hello, When configuring cookies for the requests and clicking on "code" to generate the code snippet the cookies are not included in the code

Steps to reproduce the behavior:

  1. Define cookies
  2. Click on 'code'
  3. You cannot see the cookies on the generate code

Expected behavior The cookies should be included in the generate code, For example in curl by --cookie "COOKIE_NAME=VALUE"

abhijitkane commented 5 years ago

@ohadmuch Curious about your exact use-case. Cookies that store auth info like tokens will generally expire after some time, and regularly copying and pasting code from Postman isn't viable. What sort of cookies are you looking to include in your code?

MontrealSergiy commented 4 years ago

@abhijitkane Sometimes code just needed to show a counterexample to colleague who hates, or just prefers avoid GUI based tools.