# Can Cookies be sent with newman requests?

**URL:** <https://community.postman.com/t/can-cookies-be-sent-with-newman-requests/11694>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [April 3, 2020, 4:24am UTC](https://community.postman.com/t/can-cookies-be-sent-with-newman-requests/11694 "2020-04-03T04:24:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@ben](https://community.postman.com/u/ben)\
**Post date:** [April 3, 2020, 4:24am UTC](https://community.postman.com/t/can-cookies-be-sent-with-newman-requests/11694/1 "2020-04-03T04:24:22Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi

We run a collection in postman and set a cookie for each request. When I export the collection and run with newman I am seeing errors that suggests this isn’t happening when run using newman. I can’t find anything in the collection json either that would suggest the cookies we have in postman are exported for use by newman.

Is it possible to run our collection with our cookie in newman as we do in postman?

Thanks

Ben

---

<div class="post-metadata">

**Author:** ![Kurmavatar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kurmavatar/32/3026_2.png) [@Kurmavatar](https://community.postman.com/u/Kurmavatar)\
**Post date:** [April 6, 2020, 4:46am UTC](https://community.postman.com/t/can-cookies-be-sent-with-newman-requests/11694/2 "2020-04-06T04:46:18Z")

</div>

Hi @ben

I see that you’ve raised this as a ticket internally and the suggested workaround has helped 🙂

Posting the same to help the ones looking for the solution:

There isn’t a way to export cookies from the app as of now. The workaround is to add cookie header (like `Cookie: <name>=<value>`) manually in the request and then export the collection

else

you can also use the below script in the [pre-request script](https://learning.postman.com/docs/postman/scripts/pre-request-scripts/) tab and then [export the collection](https://learning.postman.com/docs/postman/collections/data-formats/#collections).

> pm.request.headers.add({  
> key: ‘Cookie’,  
> value: ‘=’  
> });

---

<div class="post-metadata">

**Author:** ![spartanhooah](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@spartanhooah](https://community.postman.com/u/spartanhooah)\
**Post date:** [November 4, 2021, 8:30pm UTC](https://community.postman.com/t/can-cookies-be-sent-with-newman-requests/11694/3 "2021-11-04T20:30:10Z")

</div>

@Kurmavatar Sorry to resurrect this thread, but I’m confused about your answer. You say there isn’t a way to export cookies from the app, but the workaround given sounds like that’s exactly what it does? I tried adding a new cookie both via the cookie manager and by adding a new header, but neither showed up in the exported json. I’m using Postman 8.11.1.
