FreeKB - Broadcom API Gateway Require HTTP Cookie
Broadcom API Gateway - Require HTTP Cookie

The Require HTTP Cookie assertion is used to require that a request includes a certain cookie. Let's say you have created a simple REST service that contains only the Require HTTP Cookie assertion and Route via HTTP, like this.

 

In this example, if the request does not include a cookie whose key is "foo", something like this should be displayed.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server</faultcode>
   <faultstring>Policy Falsified</faultstring>
   <faultactor>https://apig.example.com/example</faultactor>
   <detail>
    <l7:policyResult xmlns:l7="http://www.layer7tech.com/ws/policy/fault" status="Authentication Required"/>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 096bd in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |