check url validity with curl
This commit is contained in:
6
web/curl-header
Executable file
6
web/curl-header
Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user