Merge pull request #16 from fazlearefin/master

Use curl for http status code and reveal a shortened url
This commit is contained in:
Bonnie I-Man Ng 2020-09-08 13:28:35 +08:00 committed by GitHub
commit 8b505a4dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2488,6 +2488,16 @@ 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
```
##### Unshorten a shortended URL
```bash
curl -s -o /dev/null -w "%{redirect_url}" https://bit.ly/34EFwWC
```
##### Perform network throughput tests
```bash
# server side: