DataScript: avi.http.get_uri

Function avi.http.get_uri( [false] )
Description Returns the full, original client requested URI (including the path and query).

The highlighted portion of the request is included in the URI:
http://www.avinetworks.com/path1/path2/index.html?a=b&c=d

Events HTTP_REQ
HTTP_RESP
Parameter When the optional flag is set to false, the returned URI is unparsed, i.e. is not URI decoded.
Returns A string value of the URI
Example Check for layered URI double encoding attack embedded in the request
if string.contains(avi.http.get_uri(false), "%") then
   avi.vs.log("Probable Double Encoding attack, conn closed.")
   avi.http.close_conn()
end

Updated: 2018-01-19 07:11:52 +0000