Skip to content

Instantly share code, notes, and snippets.

@Haeniken
Created October 31, 2021 12:53
Show Gist options
  • Save Haeniken/2569b19a20b41bb817564fd1ae9d1dc4 to your computer and use it in GitHub Desktop.
Save Haeniken/2569b19a20b41bb817564fd1ae9d1dc4 to your computer and use it in GitHub Desktop.
curl location and headers
#!/bin/bash
echo '```'
echo -e "\e[1;33m$ curl -LI" $1 "\e[0m"
curl -LI $1;
echo '```'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment