It All Makes Sense Now

The blog of Mats Gefvert.

Common CURL Parameters

Posted 8/21/2019 in Reference

Argument Description
 
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 secs Maximum request time
--oauth2-bearer token Use OAuth2 bearer token
-u user:password Server user and password
--url URL to work with
 
Output
-D file Write received headers to file
-f Fail silently on HTTP errors
-i Include response headers in output
-o file Output to file name
 
Mode
-L Follow redirects
-s Silent mode
-v Verbose

Add a comment

Please log in to post a comment. (It's quick and painless!)

Comments