check url exists and 200 status
Install
[sudo] pip install url-check
Features
- exit status 0 if url exists and HTTP status 200, 1 if error
- show error HTTP status
Examples
$ url-check https://www.npmjs.com # $? = 0
$ url-check https://not-existing # $? != 0
$ url-check https://google.com/not-existing # $? != 0
HTTP/1.1 404 Not Found