nopasaran.primitives.action_primitives.http_simple_client_primitives.HTTPSimpleClientPrimitives¶
- class nopasaran.primitives.action_primitives.http_simple_client_primitives.HTTPSimpleClientPrimitives¶
Bases:
object- __init__()¶
Methods
__init__()request_by_ip(inputs, outputs, state_machine)Make an HTTP or HTTPS request to a given IP address using a specified hostname.
- static request_by_ip(inputs, outputs, state_machine)¶
Make an HTTP or HTTPS request to a given IP address using a specified hostname.
- Number of input arguments: 3
IP address (str)
Hostname (str)
use_https (str): “1” for HTTPS, “0” for HTTP
- Number of output arguments: 1
A dictionary containing the result and any logged errors
- Args:
inputs (List[str]): [ip_address, hostname, use_https] outputs (List[str]): [result_var_name] state_machine: The state machine object.
- Returns:
None