Requests
Send Request¶
Reproduce the request and return a slice of responses for each request made (redirects response + final response).
Returns
Parameter | Type | Description |
---|---|---|
responses |
[]http.Response |
Slice with all responses, including intermediate responses (3xx status code) |
Send Basic Request¶
Returns
Parameter | Type | Description |
---|---|---|
resTime |
int |
Response time in seconds |
resBody |
string |
Response body |
statusCode |
string |
Response Status Code |
resHeaders |
string |
Response Headers |
rawResponse |
string |
Raw Response (Path + Headers + Body) |
err |
error |
Error |
Clone Request¶
Every time you need to create new fuzzers or handle requests, use the clone request module to avoid problems.
It's necessary because a request body cannot be read twice.
Raw Request¶
Convert request to Raw¶
To get the raw request of a req *http.Request
(return: string
):
Get URL from Raw Request¶
To extract the raw url of the request (return: string
):
Get Status Code form Raw Response¶
returns: string
Parse Response¶
Parses response type *http.Response
and returns information:
Returns
Parameter | Type | Description |
---|---|---|
statusCode |
string |
Response Status Code |
responseBody |
string |
Response body |
responseHeaders |
string |
Response Headers |
rawResponse |
string |
Raw Response (Path + Headers + Body) |
Check Authenticated Request¶
It's possible to check if the request requires authentication using the following function:
Returns:bool