Subjects -> Computer Networks -> Lectures -> Lecture #22

INT20CN Computer Networks

Tutorial #22

Note: Bendigo students taking this subject in semester 1, 2001 -- this tutorial is combined with tutorial 21 in a single session.

  1. The following markup appears in the context of a form on a Web page. How would you expect it to appear on a Web page?
    <INPUT TYPE="TEXT"  NAME="Name" MAXLENGTH="64" SIZE="20">
    
  2. What is meant by the following user interface terms:

  3. The following string of text has been urlencoded. What might the original form have looked like? Artist's impression required!
    name=Phil+Scott&sex=male&occupation=Ace+Lecturer
    
  4. The GET method is recommended for submission of form data if the submission of the form does not have side effects. What does this mean? What is the alternative?

  5. The following URL is typical of those observed in queries to the AltaVista search engine.

    http://www.altavista.com/cgi-bin/query?locale=au&q=%22phil+scott%22+bendigo&search=Search

    1. Does this URL suggest that the <FORM METHOD=> used to generate it was specified as GET or POST?
    2. What is the name of the CGI program which is executed by the Web server?
    3. Give, in plain text, the query string which was used to generate this URL.
    4. Practical exercise: although this URL has been (slightly) edited, it still generates a valid AltaVista search. Copy it from this Web page, and paste it into an "Open Page" dialog in your Web browser. What does it return?

  6. How does a CGI program written for a GET method obtain data from a form?

  7. When an HTML <FORM> is specified to use METHOD=POST, explain how the browser sends the form information (or QUERY_STRING) to the Web server. How does the CGI program access the information in this case?


These tutorial exercises accompany Lecture #22.
See Prac #22 for the practical exercises accompanying this tutorial.
La Trobe Uni Logo [Previous Tutorial] [Index] [Next Tutorial]
Copyright © 2001 by Philip Scott, La Trobe University.
Valid HTML 3.2!