Home > database >  Get HTTP request headers in Azure Logic Apps
Get HTTP request headers in Azure Logic Apps

Time:01-22

I am trying to get a specific header value from an HTTP request I made in Azure Logic Apps. The relevant logic looks like this: enter image description here

What do I need to put into the 'value' field if I want to get one spefic header, say 'Set-Cookie'?

Thanks in advance.

CodePudding user response:

You need to switch to Code View and write,

@triggerOutputs()?['headers']?['Set-Cookie']. 

CodePudding user response:

This will work for you (as an example of getting Content-Type) ...

outputs('HTTP')['headers']?['Content-Type']

Variable

Variable

Result

Result

  •  Tags:  
  • Related