mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2025-02-16 15:22:44 +00:00
Use curl to find out the http status code of a URL
This commit is contained in:
parent
b396c45634
commit
4b2167dca3
@ -2488,6 +2488,11 @@ 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
|
||||||
|
```
|
||||||
|
|
||||||
##### Perform network throughput tests
|
##### Perform network throughput tests
|
||||||
```bash
|
```bash
|
||||||
# server side:
|
# server side:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user