Summary
Execute a single web request.- Needs Admin: False
- Version: 1
- Author: @xorrior
Arguments
url
- Description: URL to request.
- Required Value: True
- Default Value: https://www.google.com
method
- Description: Type of request
- Required Value: True
- Default Value: None
headers
- Description: Array of headers in “Key: Value” entries.
- Required Value: False
- Default Value: None
body
- Description: String body contents to send.
- Required Value: False
- Default Value: None
Usage
Detailed Summary
This command uses the Golang http.Client to perform a GET or POST request with optional arguments for request headers and body. If you set any curl-specific environment variables withcurl_env_set then you can replace them inline like the second usage example.