#] #] ********************* #] "$d_SysMaint"'Linux/curl notes.txt' # www.BillHowell.ca 25Feb2024 initial # view in text editor, using constant-width font (eg courier), tabWidth = 3 #48************************************************48 #24************************24 # Table of Contents, generate with : # $ grep "^#]" "$d_SysMaint"'Linux/curl notes.txt' | sed "s|^#\]| |" # #24************************24 # Setup, ToDos, #08********08 #] ??Feb2024 #08********08 #] ??Feb2024 #08********08 #] ??Feb2024 #08********08 #] ??Feb2024 #08********08 #] 25Feb2024 curl for local files? - I can't get to work Howell : write bash function that does test for html files only, no use of curl... #08********08 #] 25Feb2024 search "Linux test for valid path with bookmark" +--+ https://stackoverflow.com/questions/21597851/how-to-check-whether-url-is-working-or-not-through-linux-shell How to check whether url is working or not, through linux shell [closed] Asked 10 years ago Modified 11 months ago Viewed 36k times curl -Is http://google.com | head -n 1 SubjectCurio Feb 6, 2014 at 8:47 >> my attemps : 17:52$ curl -is https://stackoverflow.com/questions/madeupquestion/example | head -n 1 HTTP/2 404 ~ 18:10$ curl -Is https://stackoverflow.com/questions/madeupquestion/example | head -n 1 HTTP/2 404 >> same with small-case i option ~ 17:53$ curl -Is 'file:///home/bill/web/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html#Summary comments' | head -n 1 >> nothing ~ 17:57$ curl -Is '/home/bill/web/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html#Summary comments' | head -n 1 ~ 18:07$ curl -Is 'http://www.BillHowell.ca/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html' | head -n 1 ~ 18:08$ curl -is 'http://www.BillHowell.ca/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html' | head -n 1 ~ # enddoc