curl -I could do this:-
alan@wopr64:~$ curl -I http://cdimage.ubuntu.com/cdimage/daily-live/current/lucid-desktop-amd64.iso 2>/dev/null | grep "HTTP/1.0 200 OK" HTTP/1.0 200 OK alan@wopr64:~$ curl -I http://cdimage.ubuntu.com/cdimage/daily-live/current/does_not_exist_lucid-desktop-amd64.iso 2>/dev/null | grep "HTTP/1.0 200 OK" alan@wopr64:~$
curl -I could do this:-
alan@wopr64:~$ curl -I http:// cdimage. ubuntu. com/cdimage/ daily-live/ current/ lucid-desktop- amd64.iso 2>/dev/null | grep "HTTP/1.0 200 OK" cdimage. ubuntu. com/cdimage/ daily-live/ current/ does_not_ exist_lucid- desktop- amd64.iso 2>/dev/null | grep "HTTP/1.0 200 OK"
HTTP/1.0 200 OK
alan@wopr64:~$ curl -I http://
alan@wopr64:~$