DataScript: avi.http.get_cookie_names
DataScript
Function | avi.http.get_cookie_names ( [context] ) |
Description | Returns all the cookies present in the HTTP request or response, determined by the context flag. When context is not specified, the context is chosen based on the event which executed the DataScript. |
Events | HTTP_REQ HTTP_REQ_BODY HTTP_RESP |
Parameter | Context: Rather than inspect the cookie from the current event context, specify the context of either avi.HTTP_REQUEST or avi.HTTP_RESPONSE to inspect cookies from those events.
For instance, during an HTTP response event, check for a cookie sent by the client during the request event by passing avi.HTTP_REQUEST . |
Returns | A table containing the cookie names, and a number to indicate the number of cookies present. |
Example |
|