DataScript: avi.http.get_host_tokens
DataScript
Function | avi.http.get_host_tokens("MODIFIED" [,start [, end]]) or avi.http.get_host_tokens( [start [, end]] ) |
Description |
|
Events | HTTP_REQ HTTP_RESP |
Parameter | start and/or end indices, which allow parsing out section of the host header. |
Returns | If no start and end indices are specified, returns a table of all the host tokens. If either start index is specified or both start and end indices are specified, returns a string. |
Example | Example host header:http://www.avinetworks.com/a/b/index.htm?avi=true
If we have HTTP Request Policies with Redirect action to www.vmware.com
Returns ‘www.vmware.com’
Returns ‘www.avinetworks.com’
Returns ‘vmware’
Returns ‘avinetworks’
Returns 'nil'
Returns ‘nil’
|
Note: This API is not supported in the events SSL_PRECONNECT
, SSL_CLIENTHELLO
, and SSL_HANDSHAKE_DONE
.