Use curl to find out the http status code of a URL

This commit is contained in:
Fazle Arefin 2020-08-29 21:21:09 +10:00
parent b396c45634
commit 4b2167dca3
No known key found for this signature in database
GPG Key ID: A6859B7D9849C0DD

View File

@ -2488,6 +2488,11 @@ curl -I http://example.com/
# Vary: Accept-Encoding
```
##### Find out the http status code of a URL
```bash
curl -s -o /dev/null -w "%{http_code}" https://www.google.com
```
##### Perform network throughput tests
```bash
# server side: