Get HTTP Response Headers for HTTP Request activity

@urweeraratne
@srinucslt

You can get the Response Headers from the HTTP Request Activity ,
where the variable will be of dictionary type

In order to retrieve data from all the output response headers you can use a for each activity ,This will print all the output headers.

image

Then if you choose to get values from any one particular key values from the dictionary

you can use opHeader.ElementAt(4).Key+" is " +opHeader.ElementAt(4).Value

where 4 is the index of the dictionary value, you can choose any number here for the index depending on what header value you require , where index starts from zero .Hope this answers to your question!
Happy Automating!

3 Likes