HTTP Requests ============= Example: Note: the number after the address, 80 in this case, is the port we're connecting to. The convention is that HTTP, our protocol, uses 80. To see more port conventions, look at /etc/services. For 1.0: telnet www.google.com 80 GET /index.html HTTP/1.0 (double carriage return) For 1.1: telnet www.google.com 80 GET /index.html HTTP/1.1 Host: www.google.com (double carriage return) (The "Host" header distinguishes between various DNS names sharing a single IP address, allowing name-based virtual hosting.) ==== Example transcript: athena% telnet www.mit.edu 80 Trying 18.7.22.83... Connected to www.mit.edu (18.7.22.83). Escape character is '^]'. GET /index.html HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 02 Feb 2009 17:12:40 GMT Server: MIT Web Server Apache/1.3.26 Mark/1.4 (Unix) mod_ssl/2.8.9 OpenSSL/0.9.6 g Last-Modified: Mon, 02 Feb 2009 15:35:26 GMT ETag: "71d64a6-29e5-498712be" Accept-Ranges: bytes Content-Length: 10725 Connection: close Content-Type: text/html MIT ... (the rest of the HTML) ==== Other things to explore: -POSTs -If-Modified-Since -Ajax -Look at the GETs and POSTs you make while surfing the web by using Firebug