When I send a POST to a login form, it will have Set-Cookie in the response headers on success.
The thing is, a particular site that I want my flow to use is returning multiple header with the same key.
So basically there are multiple Set-Cookie keys.
Because of that, header_set_cookie variable is only returning one of them (and it did not happen to be the one that I wanted to use).
Is there any method to get the rest of the Set-Cookie keys?
I did a quick Google search and it appeared that having multiple headers with the same key didn't seem to be against the rules or anything.
On a side note, I also noticed that cookies were being stored, and so if I made another request to the same path, the cookies set from the previous Set-Cookie would be used in the request header.
But assuming I want to use a particular Set-Cookie anyways, how should I proceed with that? Or is there a method to access currently stored cookies or something?
Cookies?
Moderator: Martin
- BobbyWibowo
- Posts: 1
- Joined: 11 Nov 2017 14:37
- Location: Medan, Indonesia
- Contact:
Cookies?
"Life is like riding a bicycle. To keep your balance, you must keep moving." - Albert Einstein
Re: Cookies?
Hi,
That's definitely a bug in Automagic. The action should actually provide a list of values when the same header value is contained multiple times in a response. It will be fixed in the next version.
Thanks for reporting!
Regards,
Martin
That's definitely a bug in Automagic. The action should actually provide a list of values when the same header value is contained multiple times in a response. It will be fixed in the next version.
Thanks for reporting!
Regards,
Martin