IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Difference Between Get() And Post() Method To Set The Data...


tinoymalayil
no avatar
Advanced Member
*******
Group: Members
Posts: 125
Joined: 20-April 09
From: India
Member No.: 80,483
myCENT:91.98



Post #1 post Aug 1 2009, 04:35 AM
Hui friends ..there are two types of method get() method and post() method using in JSP to send data ..post() method send the data in header of the body and get method sends through the address bar..what is the advantage of post() method ..please reply.
Go to the top of the page
+Quote Post
jlhaslip
no avatar
Insert Custom Title Here
*******************
Group: [MODERATOR]
Posts: 4,934
Joined: 24-July 05
From: Linux, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:5.30



Post #2 post Aug 1 2009, 05:30 PM
The biggest advantage would be that POST action would be more secure as a method since the data being sent is not visible in the URL.
Using the GET method adds the data to the visible portion of the URL and is "less secure".
When send ing sensitive information, or data which could be used to log-in to a site as an example, use the POST method. GET is often used to direct the client to specific pages on a dynamic site. For example, this page can be found using the GET method and the Query String is everything following the last '/' in the URL

ie: http://www.trap17.com/forums/Difference-Ge...ata-t67555.html
Go to the top of the page
+Quote Post
delivi
no avatar
Trap Grand Marshal Member
***********
Group: [HOSTED]
Posts: 1,320
Joined: 11-January 06
Member No.: 16,932
myCENT:NEGATIVE[-455.29]



Post #3 post Aug 2 2009, 10:07 AM
The GET method should be used for retrieving information from the server and should not be used for any changes to be made at the server-side.

The POST method is more secure and should be used for actions that'll make changes at the server-side.

In the POST method, the data is included as a part of the message body; whereas in the GET, the data is passed in the url as query string.

The maximum length of the URL that is supported by Internet Explorer is 2083, so you cannot send huge amount of data using the GET method, whereas you've no limits using the POST method.



Go to the top of the page
+Quote Post
webishqiptar
no avatar
Super Member
*********
Group: Members
Posts: 303
Joined: 30-April 09
From: shkoder
Member No.: 81,111
myCENT:16.44



Post #4 post Aug 2 2009, 12:29 PM
Well. to answer shortly and I am sure you can understand by yourself too,if you try to think harder. So if you use post(), this means data and information cannot be seen. So you can send a password using post(), while using get() your password would be visible.
Go to the top of the page
+Quote Post
kleong
no avatar
Super Member
*********
Group: Members
Posts: 284
Joined: 1-April 09
Member No.: 79,396
myCENT:73.38



Post #5 post Aug 5 2009, 09:57 AM
You would not want the chunk of data entered in the form to be displayed or embedded in the url ya? For get(), I would personally used it if it is to send none "personal" information, like sending of page etc. Anything else, I will use post().
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   20 Ariel 14,773 11th August 2009 - 02:34 PM
Last post by: mahesh2k
No New Posts   2 EricDrinkard 10,487 27th July 2004 - 07:44 PM
Last post by: football123213
No New Posts 1 itasor 3,773 2nd August 2004 - 06:15 PM
Last post by: OpaQue
No new 27 wild20 4,436 15th July 2009 - 09:00 PM
Last post by: iG-folmm
No New Posts   2 odomike 7,793 19th August 2004 - 07:33 AM
Last post by: odomike
No New Posts   4 dreamerspiritt 3,453 30th August 2004 - 06:11 PM
Last post by: DataHead
No New Posts   2 kobra500 745 22nd May 2008 - 08:16 PM
Last post by: tracdoor
No New Posts   0 OpaQue 2,851 1st September 2004 - 06:16 PM
Last post by: OpaQue
No New Posts   1 OpaQue 7,424 25th January 2005 - 03:25 AM
Last post by: OpaQue
No New Posts   1 cragllo 3,212 17th September 2004 - 10:08 PM
Last post by: NeXDesigns
No New Posts 3 spawn_syxx9 4,715 24th September 2004 - 04:33 AM
Last post by: X3r0X
No New Posts 1 mobileunlocking 2,944 26th September 2004 - 12:36 PM
Last post by: mobileunlocking
No New Posts   2 beg4mercy 3,477 27th September 2004 - 02:41 PM
Last post by: dundun2007
No new   48 -prodigy- 13,238 31st October 2004 - 03:54 PM
Last post by: hulunes
No New Posts 4 inshare 3,912 1st October 2004 - 07:16 PM
Last post by: mobileunlocking


 



RSS Open Discussion Time is now: 22nd November 2009 - 01:21 AM

Web Hosting Powered by ComputingHost.com.