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

Updated:   |  Broadcom API Gateway articles

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>

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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