-
Notifications
You must be signed in to change notification settings - Fork 360
HTTP
justinbastress edited this page Feb 7, 2018
·
1 revision
The HTTP module is based on the original zgrab grabber.
- BaseFlags
- TLSFlags
-
--method: Set the HTTP method for the request. DefaultGET. -
--endpoint: Fetch a specific document. Default/. -
--user-agent: Use a specific user-agent header. DefaultMozilla/5.0 zgrab/0.x. -
--max-size: Maximum number of kilobytes to read from the response. Default 256. -
--max-redirects: Maximum number of redirects to follow. Default 0. -
--follow-localhost-redirects: Allow redirects to localhost. Disabled by default. -
--use-https: perform the first request over TLS, without requiring a redirect. Disabled by default. Does not change the port.
- Do a request against the host with the given configuration
- Always sends the
Accept: */*header
- If the response is a redirect and the
max-redirectshas not been exceeded, follow the redirect.
-
response: The terminal HTTP response, as a http.Response object. -
redirect_response_chain: an array of allhttp.Responses, including intermediate redirects.