Workshop

The quiz questions are designed to strengthen the knowledge you gain each hour. The exercises help you build on that knowledge by providing you with the opportunity to apply it to real problems.

Quiz

1: What causes 401 errors?
2: Why are custom error documents usually created by CGI scripts rather than static HTML documents?

Exercises

1: Try creating some custom error documents for your own server, if you administer one. Your users will appreciate it.

Quiz Answers

A1: 401 errors occur when a user fails to submit the correct username and password when he tries to access a page protected using Basic Authentication.
A2: Custom error documents are often built using CGI scripts so that they can make use of the URL of the page the user ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition 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.