# Reusing set-cookie from response headers in HTTP request

**URL:** <https://discourse.nodered.org/t/reusing-set-cookie-from-response-headers-in-http-request/67482>\
**Category:** General\
**Created:** [8 September 2022 13:52 UTC](https://discourse.nodered.org/t/reusing-set-cookie-from-response-headers-in-http-request/67482 "2022-09-08T13:52:39Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![josechu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josechu/32/67504_2.png) [@josechu](https://discourse.nodered.org/u/josechu)\
**Post date:** [9 September 2022 15:26 UTC](https://discourse.nodered.org/t/reusing-set-cookie-from-response-headers-in-http-request/67482/19 "2022-09-09T15:26:20Z")

</div>

Maybe all this is from a different thing... oh my... Could be the raw data injected for the login?  
In my manual curl is something like:

```auto
curl 'https://URL/default.asp' \
  -H 'cookie: ASPSESSIONIDCUSRARBR=OLJCEELALEKFHOJOCEEEKAHH' \
  --data-raw 'nic=EMAIL&pwd=PASSWORD&Enviar=Entrar+%2F+Enter'

```

So they way I inject it in the HTTP request node is this way:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/95f66b6d0532667c086b91461fd5035320773c95.png)  
I have tried also without quotes... or in JSON format like `{"nic":"EMAIL","pwd":"PASS","Enviar":"Entrar+%2F+Enter"}`  
maybe other format is needed?

BTW, sorry I didnt reply earlier yesterday... but faced this thing hehe  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b29d08bd49eb6f1c7ff1f09cbc75789bf536043d.png)

---

_[View the full topic](https://discourse.nodered.org/t/reusing-set-cookie-from-response-headers-in-http-request/67482)._
