Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
HOST=${1}
PATH=${2}
telnet ${HOST} 80 <<<EOF
GET ${PATH} HTTP/1.1
HOST: ${HOST}
EOF>>>
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment