Skip to main content
Question

How do I use cookies from an HTTP request and use them in another caller?


ladeef
Contributor
Forum|alt.badge.img

I have a request in Postman that returns a "cookies" section. It's not in the headers like I need. How do I obtain these using fme? I tried using the response_header attributes but they all aren't available, only the first InstaceID.

image

2 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • May 17, 2023

In HTTPCaller under Response Headers and Status fill in a list name for List Attribute for Response Headers.

Get CookieYou will get a list of the entire header. Just follow the Set Cookie .name and .value pairs. A little string processing is needed.


ladeef
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • May 17, 2023
caracadrian wrote:

In HTTPCaller under Response Headers and Status fill in a list name for List Attribute for Response Headers.

Get CookieYou will get a list of the entire header. Just follow the Set Cookie .name and .value pairs. A little string processing is needed.

unfortunately I need 3 separate cookies, only one is available in the header , . They other cookies appear in Postman under the "Cookies" section.image


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings