WebRequest¶
Perform a web request and retrieve the response.
This node performs an HTTP request to the given URL, using the specified method and optionally URL parameters. One may specify the request body as a dictionary or a string, and request headers and cookies. The response can be retrieved in the form of the data, status code, text, cookies, and headers outputs. To use basic authentication, one may pass a list of [username, password] to the 'auth' input; for digest authentication, one may instead pass a dictionary with the keys 'type', 'username', and 'password'. Version 0.5.0
Ports/Properties¶
data¶
Request/response data dictionary.
text¶
Request/response text.
cookies¶
Request/response cookies.
headers¶
Request/response headers.
auth¶
Request authentication.
status_code¶
Response status code.
succeeded¶
Whether the request suceeded.
session¶
Optional session object to use for the request.
method¶
HTTP method (verb) to use. Typically, GET is used for retrieval, POST for submission, and PUT for replacement of a record. DELETE is used to remove a resource. The other methods are less common and are used for specific purposes.
uri¶
URL to request.
url_params¶
Optional URL parameters. This can also be wired in as a dictionary, or may be specified as in {'param1': value1, 'param2': value2}.
timeout¶
Request timeout in seconds. This can also be set to None, in which case it will default to infinite (this is, however, not recommended).
raise_for_status¶
Raise an exception if the request fails. If this is set, the node will block until the request completes or times out. If it is not set, the node will only block when the response is accessed.
allow_redirects¶
Allow redirects.
verify_ssl¶
Verify SSL certificate.
extra_options¶
Additional options to pass to the underlying requests function (dictionary).
verbose¶
Enable verbose diagnostics output.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.