Solved

difference between get & post in Html?

Posted on 2004-08-05
6
807 Views
Last Modified: 2008-02-01
difference between get & post in Html?
0
Comment
Question by:she1
6 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 11731446
0
 
LVL 6

Accepted Solution

by:
viola123 earned 20 total points
ID: 11731841
i am trying to tell you the difference in 2 minutes.

using get method, you can see the query string appended directly behind your URL in the address field of browsers.

however, post method won't display your query string in the address field. Thus, it looks more secure.

the reason of this difference is the http request format:

in the http request of post method, query string is the last line. but in get method, query string is just behind the URL. it is in the first line


regards
viola123
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 11731911
Good link Pinal - covers the issue very well :-)
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 21

Expert Comment

by:pinaldave
ID: 11732103
Thank you Sean :-) Many times I have troubles and I go to search EE I solve my problems with your answers in EE :-))
Regards,
---Pinal
0
 
LVL 4

Expert Comment

by:hamood
ID: 11735540
One more thing that when you are using get method then you can post limited data because we can not send huge amount of data using query string. If that is the case then we have to use post method.

One more thing get is not secure method it exposes your data to viewer. People can view the data in the URL. One can use post method to hide the data in URL.

Hamood
0
 

Author Comment

by:she1
ID: 11740045
thanks lot    for   all your help!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now