Merge pull request #1380 from typebrook/patch-1

Update curl.md
This commit is contained in:
Rico Sta. Cruz 2020-06-14 23:36:24 +10:00 committed by GitHub
commit 66d30a519c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -80,3 +80,9 @@ curl -u user:pass -d status="Hello" http://twitter.com/statuses/update.xml
# multipart file upload
curl -v -include --form key1=value1 --form upload=@localfilename URL
```
```bash
# Use Curl to Check if a remote resource is available
# details: https://matthewsetter.com/check-if-file-is-available-with-curl/
curl -o /dev/null --silent -Iw "%{http_code}" https://example.com/my.remote.tarball.gz
```