Files
q-tools/web/curl-header
2021-10-10 08:46:04 +03:00

12 lines
189 B
Bash
Executable File

#!/bin/bash
if [[ "$1" = "-h" ]]; then
echo Prints the header for a URL
exit
fi
# head trick to prevent unable to write -error.
curl -s -D /dev/stderr "$1" | head -c 1 | head -c 0