check url validity with curl

This commit is contained in:
ville rantanen
2017-12-14 09:22:48 +02:00
parent 0117818d72
commit 388f61e092
2 changed files with 7 additions and 0 deletions

1
bin/curl-header Symbolic link
View File

@@ -0,0 +1 @@
../web/curl-header

6
web/curl-header Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
# head trick to prevent unable to write -error.
curl -s -D /dev/stderr "$1" | head -c 1 | head -c 0