manish.rathi has asked for the wisdom of the Perl Monks concerning the following question:
If the request method is POST, the request message wd look like
POST /cgi/register.cgi HTTP/1.1
Host: localhost
Content-length: 67
Content-type: application/x-www-form-urlencoded
name=mary+jones&email=mjones%40jones.com #this is content body
In case of GET, the string attached to request is received by QUERY_STRING, how is that received in case of POST ?
Content-Length is received by CONTENT_LENGTH parameter on the server. Where does the content body go ? does it move to the server with the request ? Does it get stored in stdin on the server and from there it is read in a scalar variable ?
I am kind of confused with this. I did some reading, but still confused. Pls explain this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get and post request methods
by ikegami (Patriarch) on Mar 07, 2009 at 00:24 UTC | |
by almut (Canon) on Mar 07, 2009 at 01:27 UTC | |
|
Re: get and post request methods
by mr_mischief (Monsignor) on Mar 06, 2009 at 22:40 UTC | |
|
Re: get and post request methods
by shmem (Chancellor) on Mar 07, 2009 at 02:01 UTC |