Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Re: POST vs GET & their intermingling.

by boo_radley (Parson)
on Dec 29, 2000 at 22:51 UTC ( #48862=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: POST vs GET & their intermingling.
in thread POST vs GET & their intermingling.

under the attribute the w3 spec lists :
method      (GET|POST)

I inferred (ass-u-me-d:) ) that to properly submit data, you should only use one or the other, discounting the idea that someone could read in the url to retrieve GET data. On a side note, I see that CGI.pm says
start_form() will return a <FORM> tag with the optional method, action + and form encoding that you specify. The defaults are: method: POST action: this script enctype: application/x-www-form-urlencoded
while w3's spec says
method = get|post [CI] This attribute specifies which HTTP method will be used to submit the +form data set. Possible (case-insensitive) values are "get" (the defa +ult) and "post". See the section on form submission for usage informa +tion.
And find it mildly amusing that the default methods disagree. Which, it seems is often the case for web standards documents.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: POST vs GET & their intermingling.
by merlyn (Sage) on Dec 29, 2000 at 22:56 UTC
Re: Re: Re: Re: Re: POST vs GET & their intermingling.
by merlyn (Sage) on Dec 29, 2000 at 23:00 UTC
    And find it mildly amusing that the default methods disagree. Which, it seems is often the case for web standards documents.
    There's no disagreement there at all. If CGI.pm isn't told which method to use, it generates a "method=POST" string. If a web agent isn't told which to do, it uses GET by default. Two different levels. No conflict.

    -- Randal L. Schwartz, Perl hacker

Re^5: POST vs GET & their intermingling.
by GhodMode (Pilgrim) on Jan 19, 2006 at 03:02 UTC

    I know this is an old message, but someone may find it in a search like I did.

    The CGI module spec doesn't disagree with the W3C spec for the FORM tag. They're not referring to the same thing.

    In HTML, the action property of the form tag is not optional. If you want to, you can leave it as an empty string (action="") and you will still pass the validator.

    In CGI's start_form() method, the action method is optional. If you don't define the action property of the start_form method, it will create a form tag with an action property that points to the current script.

    --
    -- GhodMode
    
      As merlyn noted in his post, made a tad over five years ago.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://48862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-05-17 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?