JavaDeploy
SiteMap
Perl 1
Perl 2
ASP
XML
CGI Forms
«Prev
Next»
Web Perl
Web Server Basics
Http Protocol
Perl Basics
Perl Web Language
Perl Brief History
Compiled vs. Interpreted
Perl Language
Cross Platform Availability
Awk Sed Perl Text
Perl Regex
Pattern Matching
Powerful Pattern Matching
Regexp Substitute Operator
Execute Replacement Component
Aggregate Data Types
Perl Array
Perl Hash
Array hash Association
Perl References
Scalar References
Array References
Hash References
Perl Data Structure
Perl Web Programming
CGI Forms
About Web Forms
Passing Data Server
Server CGI Program
Get post Methods
Form Data encoding
Perl Widgets
Perl Form Conclusion
Perl CGI
Perl Program Flow
State Machine Model
Perl SM Example
Perl based HTML
CGI State Machine Model
Processing States using CGI
Perl Guestboook
Identify Perl Cookie Functionality
Set Read Cookies
Expire Perl Cookie
Clearing Perl Cookie State
Perl Interfaces Conclusion
Pipes Streams
Perl Stream
Write File Stream
Reading File Streams
Perl Pipe
Send email
email Form
Streams | Pipes
GET POST in Perl - Exercise
Test POST and GET
Take the formtest.cgi program from the previous lesson and make it work with either the
POST
or
GET
method. (You can download this file from the course Resources page.) Be sure to test it both ways.
Chapter 3 in
The CGI Book
contains a detailed description of the GET and POST methods. Paste your source code below and click the
Submit
button when you are finished.
In Perl, the (CGI) is a protocol which defines the interaction of web servers with an executable program in order to produce dynamic web pages. CGI enables the web server to send information to the program and the program then sends the information back to the web server which in turn can be sent back to the browser. GET and POST are not interchangeable and both of these types represent different operations. Proxy servers may cache the output of GET requests. GET method is the default method for all web request to pass the information from browser to the web server and it also creates a long string that shows up in the browserâs URL box. It sends the encrypted user information attached to the page request.