|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#1
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.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() myCENT:5.30 |
Post
#2
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 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#3
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. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#4
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.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#5
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().
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
20 | Ariel | 14,773 | 11th August 2009 - 02:34 PM Last post by: mahesh2k |
|||
![]() |
2 | EricDrinkard | 10,487 | 27th July 2004 - 07:44 PM Last post by: football123213 |
|||
![]() |
1 | itasor | 3,773 | 2nd August 2004 - 06:15 PM Last post by: OpaQue |
|||
![]() |
27 | wild20 | 4,436 | 15th July 2009 - 09:00 PM Last post by: iG-folmm |
|||
![]() |
2 | odomike | 7,793 | 19th August 2004 - 07:33 AM Last post by: odomike |
|||
![]() |
4 | dreamerspiritt | 3,453 | 30th August 2004 - 06:11 PM Last post by: DataHead |
|||
![]() |
2 | kobra500 | 745 | 22nd May 2008 - 08:16 PM Last post by: tracdoor |
|||
![]() |
0 | OpaQue | 2,851 | 1st September 2004 - 06:16 PM Last post by: OpaQue |
|||
![]() |
1 | OpaQue | 7,424 | 25th January 2005 - 03:25 AM Last post by: OpaQue |
|||
![]() |
1 | cragllo | 3,212 | 17th September 2004 - 10:08 PM Last post by: NeXDesigns |
|||
![]() |
3 | spawn_syxx9 | 4,715 | 24th September 2004 - 04:33 AM Last post by: X3r0X |
|||
![]() |
1 | mobileunlocking | 2,944 | 26th September 2004 - 12:36 PM Last post by: mobileunlocking |
|||
![]() |
2 | beg4mercy | 3,477 | 27th September 2004 - 02:41 PM Last post by: dundun2007 |
|||
![]() |
48 | -prodigy- | 13,238 | 31st October 2004 - 03:54 PM Last post by: hulunes |
|||
![]() |
4 | inshare | 3,912 | 1st October 2004 - 07:16 PM Last post by: mobileunlocking |
|||
|
Open Discussion | Time is now: 22nd November 2009 - 01:21 AM |
Web Hosting Powered by ComputingHost.com.