Skip to content

HTTP Client

Marcin Bury edited this page Oct 12, 2018 · 5 revisions

HTTP Client

Example exploit that utilises HTTP communication as a client

HTTPClient methods

HTTPClient.http_request

Params

Param Type Description Required
method str method that should be issued e.g. GET, POST yes
path str path to the resource that should be requested yes
session requests session manager that should be used no, default=requests
kwargs any kwargs arguments passed to request method no

Returns

Type Description
Response Response object

Example

HTTPClient.get_target_url

Params

Param Type Description Required
path str path to HTTP server resource no, default=""

Returns

Type Description
str full target url with correct schema: http/https

Example

HTTPClient.http_test_connect

Params

  • None

Returns

Type Description
bool True if test connection was successful, False otherwise

Example

Clone this wiki locally