Created 05-18-2017 03:10 PM
I use an InvokeHTTP processor to POST login details to a website
This returns a Set-Cookie attribute
Then I use another InvokeHTTP to request some JSON from a REST endpoint. I have created a Cookie attribute as ${Set-Cookie:substringBefore(';')} and added Cookie to "Attributes to Send" to use it as an HTTP header.
The problem is that this 2nd InvokeHTTP fails authentication and returns a 401.
If I manually log in and copy the Cookie value to the 2nd InvokeHTTP's parameters, the call works. In either case the Data provenance shows a valid Cookie value but the call always returns a 401 when the value comes from the dynamic value, so I am a bit lost.
Created 12-02-2021 02:05 AM
Hello,
I encounter a completely similar issue ...
Created 02-13-2022 04:56 PM
Hi @n_tulett ,
The Set-Cookie attribute returned by the first processor must be added as a Cookie header for the next InvokeHttp processor. You can do this by adding the following dynamic property to the second InvokeHttp processor:
Regards,
André
Created 02-13-2022 04:57 PM
@hanscardoen This should solve you issue as well.