Skip to content

http_post

Source

Hook for Requests 'post' type prompts.Link

Inputs

Name Type Default Required Description
username str None False
password str None False
url str True URL for the new request object.
headers dict None False Headers to include in request.
extra_kwargs Union[str, dict] {} True Optional arguments that request takes.
data Any None False Dictionary, list of tuples, bytes, or file-like object to send in the body of the Request.
no_exit bool False True Whether to exit on non-200 response.

Arguments

Position Argument Type
1 url str
2 data Any
3 kwargs str

Returns

dict

Examples

Make post request and store output in key

input_json:
  stuff: things

compact->: http_post https://httpbin.org/post --json input_json

expanded:
  ->: http_post
  url: https://httpbin.org/post
  json:
    stuff: things