O'Reilly logo

Sams Teach Yourself Ruby in 21 Days by Mark Slagell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Test Drives

Yesterday you saw what kind of output a Web server generates when it is delivering a page: a line identifying the HTTP protocol version, another line identifying the type of document to be delivered, a blank line, and finally the actual code to generate the page. (This is just a minimal description. Headers can contain extra information, such as a Content-length line.) An HTML file normally doesn't include the header lines. For instance, this much HTML is sufficient to make a literal time appear in the browser window:

<html><body>
Current time: Sun Sep 16 12:46:46 CDT 2001
</body><html>

If you save these text lines in a file named index.html in your DocumentRoot directory and point a browser to http://localhost, the browser should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required