Skip to content

Instantly share code, notes, and snippets.

@SamSchmir
Created April 8, 2018 18:24
Show Gist options
  • Save SamSchmir/e7936a094054cc6d1e43d8a4f3391313 to your computer and use it in GitHub Desktop.
Save SamSchmir/e7936a094054cc6d1e43d8a4f3391313 to your computer and use it in GitHub Desktop.
Common options:
-t, --[no-]trace Trace request/response traffic (default: --no-trace)
-d, --data [data] Sends the specified data in a POST request to the HTTP server.
-r, --raw-data [data] Sends the specified data as it is in a POST request to the HTTP server.
-A, --header [header] Adds the specified header to the request to the HTTP server.
-H, --host [host] Specify host to make requests to (default: api.twitter.com)
-q, --quiet Suppress all output (default: output is printed to STDOUT)
-U, --no-ssl Disable SSL (default: SSL is enabled)
-X, --request-method [method] Request method (default: GET)
-P, --proxy [proxy] Specify HTTP proxy to forward requests to (default: No proxy)
-f, --file [path_to_file] Specify the path to the file to upload
-F, --file-field [field_name] Specify the POST parameter name for the file upload data (default: media)
-b, --base64 Encode the uploaded file as base64 (default: false)
-h, --help Show this message
-v, --version Show version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment