ER H
ER H

Reputation: 84

Insomnia Rest Client - Get header from response with multiple values

I'm trying to parse the Set-Cookie header from a response.

I do,

Response - reference values from other request's response.

Header - value of of response header.

Request - ..

Header name - Set-Cookie

and the choices I get are:

Choices are [
    "Date",
    "Server",
    "WWW-Authenticate",
    "Content-Length",
    "Set-Cookie",
    "Set-Cookie",
    "Set-Cookie",
    "Content-Language",
    "X-Powered-By",
    "Cache-Control",
    "Pragma",
    "Content-Type"
]

When I enter in Header Name: Set-Cookie, it seems that I only get the first one. How can I get the second or third?

Upvotes: 4

Views: 2945

Answers (1)

payala
payala

Reputation: 1397

Just had the same problem, in this specific case, because a cookie is set, you can make a reference to the specific cookie value.

Start typing cookie in the field you want to use it and press Ctrl+Spacebar enter image description here

You'll get this red placeholder: enter image description here

Click on it, and you'll get a modal to choose the cookie you want. After you type the url for the site, it will suggest you the available values, just choose the one you want: enter image description here

Upvotes: 0

Related Questions