This program demonstrates how to process form data using the POST protocol. This program was designed to be used with the Apache web server.
The full source code for example_process_post_form_data.c is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_2/example_process_post_form_data/example_process_post_form_data.c (right mouse click then select "Save link as" to download).
A makefile to compile example_process_post_form_data.c is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_2/example_process_post_form_data/Makefile (right mouse click then select "Save link as" to download).
To compile example_process_post_form_data.c, type make within a shell command prompt in the same directory containining example_process_post_form_data.c and your Makefile.
The executable program will be called example_process_post_form_data.cgi.
If you are using the Apache web server, please copy example_process_post_form_data.cgi to your cgi-bin directory at: /usr/lib/cgi-bin
In your web browser, enter the following URL: http://localhost/cgi-bin/example_process_post_form_data.cgi
Spring 2017, CS-160-02:
Lectures:
Assignments:
Handouts:
Programs: