Both HTTP GET and HTTP POST use HTTP as their underlying protocol. Both of these methods encode request parameters as name/value pairs in the HTTP request.
HTTP GET :-
1. All the name value pairs are submitted as a query string in URL. it means The GET method creates a query string and appends it to the script's URL on the server that handles the request.
2. It's not secured as it is visible in plain text format in the Location bar of the web browser.
3. Length of the URL string is restricted upto 255 character
4. this is the default method used. if you not mention in Form Tag.
5. If get method is used and if the page is refreshed it would not prompt before the request is submitted again.
6. Data is always submitted in the form of text
HTTP POST :-
1. The POST method creates a name/value pairs that are passed in the body of the HTTP request message means All the name value pairs are submitted in the Message Body of the request.
2. Post Method is secured because Name-Value pairs cannot be seen in location bar of the web browser.
3. Length of the string (amount of data submitted) is not restricted.
4. If post method is used and if the page is refreshed it would prompt before the request is resubmitted.
5. use request object to get the value of posted control.
Note :- if you like this post, please post your comments.
Subscribe to:
Post Comments (Atom)
+of+IMG_1821.jpg)
No comments:
Post a Comment