Experiment with the cookie example presesnted in Figures ….
a. Obtain the source files for form.html, cookie.c, cookie2.c.
b. Install form.html on the web server.
c. Compile cookie.c with util.c to generate an executable cookie.cgi. Install cookie.cgi on the web server.
d. Compile cookie2.c with util.c to generate an executable cookie2.cgi. Install cookie2.cgi on the web server.
e. Browse form.html. Does the session data (the name entered in the static form) get passed to the last web script?
f. Summarize the experiment and your observations.
The above page is dynamically generated by cookie.cgi, along with cookies containing the name value pairs are generated and sent to the browser.
When the submit button is pressed, the browser requests cookie2.cgi. The browser also assembles all the name-value pairs in the cookies applicable to this domain, and sent the string to cookie2.cgi via the server.
Upon being invoked, cookie2.cgi retrieves the cookie string from the environment variable HTTP_COOKIE, extracts the name-value pairs from it, and displays the pairs, as follows:
You might also like to view...
What should be included in a site survey report?
What will be an ideal response?
Construct a grade point average (GPA) calculator using some of the techniques you learned in Section 33.5.6. The calcu- lator should include text fields to accept classes and grades, to display a running list of up to seven classes and to output the calcu- lated overall GPA. When information is entered into the input fields it should be placed in the next available output row. The form should accept grades in letter form and convert them into numeric form for calculation and output purposes. This movie should use two buttons, one to add the inputted class and grade information and another to calculate the overall GPA.
What will be an ideal response?
Computers deal with two basic types of data - text and string.
Answer the following statement true (T) or false (F)
What is Adobe AIR?
What will be an ideal response?