base/utils/active-http.zeek
- ActiveHTTP
A module for performing active HTTP requests and getting the reply at runtime.
- Namespace:
ActiveHTTP
- Imports:
Summary
Runtime Options
The default timeout for HTTP requests. |
|
The default HTTP method/verb to use for requests. |
Types
Functions
Perform an HTTP request according to the
|
Detailed Interface
Runtime Options
- ActiveHTTP::default_max_time
-
The default timeout for HTTP requests.
- ActiveHTTP::default_method
-
The default HTTP method/verb to use for requests.
Types
- ActiveHTTP::Request
- Type:
- Fields:
-
-
method:
string&default=ActiveHTTP::default_method&optional The HTTP method/verb to use for the request.
-
client_data:
string&optional Data to send to the server in the client body. Keep in mind that you will probably need to set the method field to “POST” or “PUT”.
-
max_time:
interval&default=ActiveHTTP::default_max_time&optional Timeout for the request.
-
method:
Functions
- ActiveHTTP::request
- Type:
Perform an HTTP request according to the
ActiveHTTP::Requestrecord. This is an asynchronous function and must be called within a “when” statement.- Parameters:
req – A record instance representing all options for an HTTP request.
- Returns:
A record with the full response message.