1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 20:35:32 +02:00

curl: add --fail in example (#6630)

This commit is contained in:
Tomasz Janiszewski 2021-11-05 00:35:40 +01:00 committed by GitHub
parent b8fad939d5
commit a51f7f6ce1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,9 @@
`curl --remote-name {{http://example.com/filename}}`
- Download a file, following location redirects, and automatically continuing (resuming) a previous file transfer:
- Download a file, following location redirects, and automatically continuing (resuming) a previous file transfer and return an error on server error:
`curl --remote-name --location --continue-at - {{http://example.com/filename}}`
`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}`
- Send form-encoded data (POST request of type `application/x-www-form-urlencoded`). Use `--data @file_name` or `--data @'-'` to read from STDIN: