Help Needed with Extracting Cookies from ERP API Responses

Hello everyone,

I’m a first-time user and I need some assistance with an ERP system I’m testing.

I successfully connected to the ERP instance, but I’m having trouble with the login process. Specifically, I need to extract the response headers, particularly the cookies, to use in subsequent API requests.

I’ve tried using Set Variable, Retrieve Headers, and Text Parsing, but the values returned from these nodes are empty, even though the headers are present in the input.

Could anyone guide me on how to properly extract cookies from the response headers?

I’ve attached images below for reference.
The successful output for the HTTP to connect


Set Variable use to get cookies
image

Thank you in advance for your help!

AD

Hi @AMDon,

Why are you emulating a browser session to access the application? Is there no API available?

The cookie headers is an array. Keep in mind that ARRAY = ITERATOR. You will need an iterator to iterate through the array to process each value as a bundle.

The information you provided is quite limited. Please share more about what you are trying to accomplish and what the request and response looks like.

Cheers,
Henk