Set Cookies for http post

milapshah15
Kilo Expert

Hello Folks,

I am trying to integrate with one of the external application and I see that their authentication is CSRF based token system.I get the CSRF token from the login and trying to set that up for the next subsequent request.I still get the invalid username/password combo.Possibly they are expecting to set the cookies as well to the next request.

Can anybody please let me know how I can set the cookies in http header request.

Warm regards

MIlap

1 REPLY 1

gauravchoudhury
Tera Guru

Hi Milap,



Cookies are passed as HTTP headers, both in the request (client -> server), and in the response (server -> client).



Here are a few links for your reference:



  1. Link 1
  2. Link 2
  3. Link 3
  4. Link 4


Also, I have attached a PDF doc for your reference.