Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How to remove set-cookie header in my http request ?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Nov 9, 2017 9:04 AM Last Post By: Remy Lebeau (Te...
Fuandi Hartanto

Posts: 4
Registered: 7/16/14
How to remove set-cookie header in my http request ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 9, 2017 1:08 AM
I did http post a few times and realized that it also included this set-cookie.
I never set this before. How to not to include this set-cookie when I do http post?


Set-Cookie: PD_STATEFUL_6d9119dfd1e-a37e-11e7-8f30-02bafc8b58f9=%2Ftest%2Fntp%2Fv1; Path=/; Secure; HttpOnly
Set-Cookie: BIGipServerWebseal-UTP_EXT1=237179820.64289.0000; path=/; Httponly; Secure
Set-Cookie: TS01bbb721=sd5fb27677f9e91f3efg84e675be4be63cdb9b5f1f88e580dbe0c65ce3b5bbc51877af4b0745b063d5dfdf9aaa99bfd543e2fe48db99c82149cff0690923aa43e4d1d2361525148b2eb10a6c404a21ef1d8d63a93d615c; Path=/; Domain=.xx.xx.xxx

Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: How to remove set-cookie header in my http request ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 9, 2017 9:04 AM   in response to: Fuandi Hartanto in response to: Fuandi Hartanto
Fuandi Hartanto wrote:

I did http post a few times and realized that it also included this
set-cookie.

So? That means the server wants you to have those cookies and send
them back on future requests. That is perfectly normal behavior. What
is wrong with that? That is how servers commonly persist data between
requests.

How to not to include this set-cookie when I do http post?

'Set-Cookie' is a response header from the server, not a request
header to the server (that would be 'Cookie' instead). TIdHTTP handles
cookie management for you, you don't need to worry about it.

If you absolutely don't want to allow cookies, then simply set the
TIdHTTP.AllowCookies property to False (it is True by default).

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02