Re: form data & GET vs POST
by David Mintz <mambomintz(at)yahoo.com>
|
Date: |
Thu, 20 Apr 2000 14:57:14 -0700 (PDT) |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
somebody wrote:
> | i've been pondering this question for quite some
| > time as well. i think its being miss interpreted.
|
|
I agree, and I think the question was simpler than
some people may have thought. The answer goes back to
the definitions of the GET and POST methods. Somebody
correct me if I'm wrong:
With GET the data is read from $ENV{QUERY_STRING}
whereas with POST its read from STDIN. With GET you
can call your script from a url that optionally has
the url-encoded input parameters appended to the
script's url. That means yes, you can call a script
without clicking a form's submit button but rather by
clicking a hypertext link pointing to the script, but
when you do that you're using GET, not POST.
Now I have a question: what, if any, are the
circumstances under which GET is faster than POST? I
think I remember reading something somewhere that
implied that GET was faster than POST but I don't
remember where.
David Mintz
Web Design & Hosting http://www.dmintzweb.com
Personal http://www.panix.com/~dmintz
__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA