Skip to main content
Question

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

  • May 17, 2023
  • 2 replies
  • 109 views

ladeef
Contributor
Forum|alt.badge.img+1

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+1
  • Author
  • 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.

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