When using GET, you can only send a small amount of data (255 bytes?) as
the data is actually sent as part of the URL. With POST, you won't have
this limitation, and the data sent won't be seen in the URL.
[I'm sure someone here has a better explaination]
I usually use GET if I want the user to be able to create their own
"submission" by altering the URL (e.g. if you're writing a search engine)
and POST when I don't wan't them to (I don't want them to mess around,
also, I think it looks 'cleaner' if the URL isn't messed up with lots of
name/value pairs)..
[ Matthias Carlsson ]
[ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
[ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]
> -----Ursprungligt meddelande-----
> Fr�n: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]F�r Frank Meertens
> Skickat: den 18 september 2000 22:13
> Till: [EMAIL PROTECTED]
> �mne: Re: doGet and doPost
>
>
> Hi all,
>
> In have the same question. Technically I know the difference, but does
> someone have some examples where you typically use a doGet or a doPost.
>
> Thanx,
>
> Frank.
> ----- Original Message -----
> From: "Rajesh Kumar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 18, 2000 12:29 AM
> Subject: doGet and doPost
>
>
> > Hello all,
> > I am new to servlets.My doubt is, What is the difference between doGet
> > method and doPost method.When to use doGet and doPost.
> >
> > Thanks in advance,
> > Rajesh Kumar J
> > Visit: http://rajeshkj.homepage.com
> >
> >
> __________________________________________________________________
> _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html