base/protocols/http/utils.bro
-
HTTP
Utilities specific for HTTP processing.
Detailed Interface
Functions
-
HTTP::build_url
-
Creates a URL from an HTTP::Info
record. This should
handle edge cases such as proxied requests appropriately.
Rec: | An HTTP::Info record. |
Returns: | A URL, not prefixed by "http://" . |
-
HTTP::build_url_http
-
Creates a URL from an HTTP::Info
record. This should
handle edge cases such as proxied requests appropriately.
Rec: | An HTTP::Info record. |
Returns: | A URL prefixed with "http://" . |
-
HTTP::describe
-
Create an extremely shortened representation of a log line.
-
Given a string containing a series of key-value pairs separated
by “=”, this function can be used to parse out all of the key names.
Data: | The raw data, such as a URL or cookie value. |
Kv_splitter: | A regular expression representing the separator between
key-value pairs. |
Returns: | A vector of strings containing the keys. |