dimanche 28 décembre 2014

Checking URLs for HTTP code 200


I have a text file containing a list of URLs like this:


http://somesite.com/some-article/ https://anothersite.fr/somepage.php?page=something


What I'd like to do is check which URLs return HTTP code 200 (OK) and put them in a list in another file.


How could I accomplish this using terminal? Curl?


Thank you!



Aucun commentaire:

Enregistrer un commentaire