Common CURL Parameters

Protocols
–http1.0 Use HTTP 1.0
–http1.1 Use HTTP 1.1
–http2 Use HTTP 2
-4 Resolve domain names to IPv4
-6 Resolve domain names to IPv6
-k Allow insecure connections in SSL
 
HTTP options
–data …HTTP POST data
–data-urlencode …HTTP POST data (‘@’ allowed)
-F name=content Specify multipart MIME data
-G Put POST data in URL and use GET
-H header/@file Pass custom header to server
-m secsMaximum request time
–oauth2-bearer token Use OAuth2 bearer token
-u user:password Server user and password
–url URL to work with
 
Output
-D fileWrite received headers to file
-fFail silently on HTTP errors
-i Include response headers in output
-o file Output to file name
 
Mode
-LFollow redirects
-sSilent mode
-vVerbose

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *