Workshop

Quiz

1: To do server push, what functions need to be used from the CGI module?
  1. multipart_start and multipart_end

  2. multipart_init, multipart_start, and multipart_end

  3. push_start and push_end

2: All browsers support client pull because it's part of the HTML standard.
  1. True

  2. False

3: Cache proxies are guaranteed not to cache what kinds of Web pages?
  1. Responses from an HTML form that uses the POST method

  2. Server-pushed content

  3. Any CGI program's output

Answers

A1: b. The multipart_init is used to get the browser ready for a multipart Web pages. The multipart_start and multipart_end mark the beginning and ending of each such page.
A2: b. Quite False. The <META> tags can be ignored by browsers, so says the standard. Also, using the -Refresh option in the header function doesn't guarantee that the browser will reload the page as requested; the browser has the option of ignoring that directive too.
A3: a. The answer was explained in the "Q&A" section.

Activities

  • Modify the hit counter in Listing 23.3 (or 23.4) to keep different counts for various types of browsers. To do this, you'll need a different file for each browser type you will keep track of. Don't forget to keep an extra file around for those browsers that you can't identify.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.79.121