Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does the POST method work?

Status
Not open for further replies.

eekthecat

Programmer
Nov 13, 2000
45
US
Hi,

I would like to know the following.

When you use the GET method the data is put in a string in the adress. But what about when you use the POST method. What happens than? Where does the data go to? Is it written in a buffer of some kind?

Can someone hepl me?

Thanx!

Eek

Yea I know I'm stupid... :-$
 
--------- POST ---------
on Sender
<form method=&quot;post&quot;.....>

on Receiver
Request.Form(&quot;SomeVariablePassed&quot;) ....

URL address bar Shows
Plain URL, no ?Var=something&amp;something etc

--------- GET ---------
on Sender
<form method=&quot;get&quot;.....>

on Receiver
Request(&quot;SomeVariablePassed&quot;) ....

URL address bar Shows
TheURL?Var=something&amp;something etc

--------------

A Benefit of using a Get would be that if your ASP is expected to be sumited to with attached parameters, and if you use a form submit, instead of checking for a form, using &quot;Get&quot; makes it so you can get it with Request every time rather than Request.Form, using &quot;Post&quot; makes the Url bar clean, thus would be bit better for somewhat sentative information.
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top