![]() It also supports other methods, such as HEAD, POST, PUT, and DELETE. To specify the HTTP protocol version (e.g., http/2), use the -http2 option, as shown below: curl -http2 įor URLs starting with HTTPS, curl first tries to negotiate to establish a http/2 connection and automatically falls back to http/1.1 if the negotiation fails. The above command is essentially equivalent to curl -request GET, which sends a GET request to using the HTTPS protocol. When you use curl against a URL without specifying any option, the request defaults to the GET method of the HTTP protocol. Now that you’ve become familiar with curl syntax, let’s discuss various use cases with the help of examples. The help section is divided into categories, so the curl -help category gets you an overview of all the categories. To get detailed help, you can use curl -help all. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |