mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 22:07:01 +00:00
Merge pull request #16 from fazlearefin/master
Use curl for http status code and reveal a shortened url
This commit is contained in:
commit
8b505a4dc5
10
README.md
10
README.md
@ -2488,6 +2488,16 @@ curl -I http://example.com/
|
|||||||
# Vary: Accept-Encoding
|
# 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
|
##### Perform network throughput tests
|
||||||
```bash
|
```bash
|
||||||
# server side:
|
# server side:
|
||||||
|
Loading…
Reference in New Issue
Block a user