Workshop

Quiz

1:The following URL will work as expected.
<A HREF="/cgi/foo.pl?name=Ben Franklin&Job=printer">
  1. True.

  2. False; you can't pass two parameters to a CGI program like this.

  3. False; the space in the name Ben Franklin is not allowed.

2:Server-side includes are processed and expanded by what?
  1. The browser

  2. The Web server

  3. The operating system

Answers

A1: c. You should use escape to properly hide spaces and other special characters.
A2: b. The Web server converts the SSI HTML tags into their final values before sending them to the browser.

Activities

  • Use a Telnet client to connect to one of your favorite Web sites, and try fetching a Web page manually.

Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.