Curl
get curl to set error code to error if it fails
curl --fail http://non_existing_domain.com || echo "curl failed"
curl --fail http://example.com && echo "curl succeeded!"
get curl to set error code to error if it fails
curl --fail http://non_existing_domain.com || echo "curl failed"
curl --fail http://example.com && echo "curl succeeded!"
From here you can search these documents. Enter your search terms below.
| Keys | Action |
|---|---|
| ? | Open this help |
| n | Next page |
| p | Previous page |
| s | Search |