curl check url 200 bash code example Example: check if url returns 200 via curl curl -o /dev/null -u username:password -Isw '%{http_code}\n' {URL}