1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

curl: remove -I from auth example (fixes #1406) (#1417)

(also, minor tweaks to some of the descriptions)
This commit is contained in:
Waldir Pimenta 2017-06-26 11:13:01 +01:00 committed by Jeef
parent 18b2c95646
commit 04fad240fe

View file

@ -1,13 +1,13 @@
# curl
> Transfers data from or to a server.
> Supports most protocols including HTTP, FTP, POP3.
> Supports most protocols, including HTTP, FTP, and POP3.
- Download the contents of an URL to a file:
`curl {{http://example.com}} -o {{filename}}`
- Download a file saving the output under the filename indicated by the URL:
- Download a file, saving the output under the filename indicated by the URL:
`curl -O {{http://example.com/filename}}`
@ -15,11 +15,11 @@
`curl -O -L -C - {{http://example.com/filename}}`
- Send form-encoded data (POST request of type application/x-www-form-urlencoded):
- Send form-encoded data (POST request of type `application/x-www-form-urlencoded`):
`curl -d {{'name=bob'}} {{http://example.com/form}}`
- Send a request with an extra header using a custom HTTP method:
- Send a request with an extra header, using a custom HTTP method:
`curl -H {{'X-My-Header: 123'}} -X {{PUT}} {{http://example.com}}`
@ -27,9 +27,9 @@
`curl -d {{'{"name":"bob"}'}} -H {{'Content-Type: application/json'}} {{http://example.com/users/1234}}`
- Pass a user name and password for server authentication and show headers info only:
- Pass a user name and password for server authentication:
`curl -u myusername:mypassword -I {{http://example.com}}`
`curl -u myusername:mypassword {{http://example.com}}`
- Pass client certificate and key for a resource, skipping certificate validation: