How to HTTP with curl
In all user surveys and during all curl's lifetime, HTTP has been the most important and most frequently used protocol that curl supports. This chapter will explain how to do effective HTTP transfers and general fiddling with curl.
This will mostly work the same way for HTTPS, as they are really the same thing under the hood, as HTTPS is HTTP with an extra security TLS layer. See also the specific HTTPS section below.
In every HTTP request, there's a method. Sometimes called a verb. The most commonly used ones are GET, POST, HEAD and PUT.
Normally however you do not specify the method in the command line, but
instead the exact method used depends on the specific options you use. GET is
-F makes it a POST,
-I generates a HEAD and
sends a PUT.
More about this in the Modify the HTTP request section.