~/src/www.mokhan.ca/xlgmokha [main]
cat understanding-http.md
understanding-http.md 779 bytes | 2007-07-02 00:00
symlink: /dev/random/understanding-http.md

Understanding HTTP

HTTP is used for so many different reasons. While working in the world of point of sale terminals, I spent some time sending raw HTTP packets and parsing them in C. Lot’s of fun!

Here’s a quick little exercise on playing with HTTP, that I found in “Microsoft .NET Framework 2.0 Web-Based Client Development”.

  1. Open up a command prompt: Start->Run->cmd
  2. type “telnet”, and press enter
  3. type “o www.mokhan.ca 80”
  4. type
      GET / HTTP/1.1
      Host: www.mokhan.ca
    
  5. Then press enter twice. But do it quickly, before my server closes the connection due to a timeout!