Question

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

  • 17 May 2023
  • 2 replies
  • 7 views

Badge

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

Badge +20

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.

Badge

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

Reply