HTTP is a network protocol for serving web pages.
Testing[]
You can use the following bash script to test HTTP easily:
echo open $1 80
sleep 2
echo "GET $2 HTTP/1.0"
echo "User-Agent: Sysadmin Wiki 1.0 (http://sysadmin.wikia.com)"
echo "Host: $1"
echo
echo
sleep 2
You need to give it arguments for the server to connect to and the URL to retrieve and then you need to pipe the output to telnet, like this:
./httptest google.com / | telnet
See also[]
External links[]
- HTTP status codes on Wikipedia
- Jtanium's notebook article on telnetting to a TLS server