Skip to content

Instantly share code, notes, and snippets.

@izidormatusov
Created April 22, 2014 14:27
Show Gist options
  • Save izidormatusov/11181298 to your computer and use it in GitHub Desktop.
Save izidormatusov/11181298 to your computer and use it in GitHub Desktop.
# HTTP request in plain bash
exec 3<>/dev/tcp/tangentlabs.co.uk/80
echo -e "GET / HTTP/1.1" >&3
echo -e "Host: tangentlabs.co.uk" >&3
echo -e "Connection: close" >&3
echo -e "\n" >&3
cat <&3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment