Hi Community,
Is it possible in a HTTP connector to overwrite the cookie header in a session or remove it?
It's added automatically for each request currently.
Reason: a particular type of device isn't accepting the requests when the HTTP request-header 'Cookie' is present.
Thanks in advance!
Hi,
DataMiner is using WinHTTP in the background, which is by default taking care of the cookie header. There is no way to disable it at this moment from connector or DataMiner setting.
Feel free to request a new feature here to request a possibility to disable automatic cookie handling.
Regards,
DataMiner will indeed automatically handle the cookies for you. Meaning that if a server returns a response with the Set-Cookie header (e.g. Set-Cookie: auth_id=123), on subsequent requests DataMiner will automatically populate the Cookie header with the value that was previously returned. (i.e. Cookie: auth_id=123)
So you could argue that if the device is not accepting any requests with the Cookie header, maybe it should not send the Set-Cookie response header to begin with.
Perhaps there is a configuration setting somewhere that you can override to make it not send out that header?
Okay, thank you for your response!