“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”
GET method is used to request a resource from the server. POST method is used for passing user input to the server. POST stores all parameter info in the body than in the URL.
GET: Arguments are passed from the webpage to the webserver by tagging them along with the URL. You can see these araguments in your browser address bar. Example http://www.imilap.com/profileResultDetail.asp?id=237
Here is is passed as a part of url - this is GET
There is limit on the length of arguments
POST: Arguments are posted to webserver. They are not visible to the user. There is no limit on the lenght of arguments.
get- This has a limit as to number of characters that it can pass. In get the request is sent in the the form of a query string from the web browser to the web server. The max. no. of characters that can be passed are 255. Since the request is sent in the query string that is visible in the address bar of the web browser, this method is not suited for passing confidential info. such as passwords/credit card no’s etc.
post- There is no such limit on the no. of characters that can be passed at a time as the request is passed in the body of the message. So this is useful for passing confidential data. Also, one can pass any length of info. to the server.
If we use POST method, data is submitted in the form of form elementes and if we use GET method, data is submitted in the form of Query String (we can see this in location bar) we cannot use GET method to send large amount of data.
post never rerturns a cached page. post is encrypted. post doesnt have a length limit like get.
Get URL can be copied and can me emailed to anyone.
Post URL cannot.
Get has a length restriction Post does not have any length restriction.
GET method is used to request a resource from the server.
POST method is used for passing user input to the server. POST stores all parameter info in the body than in the URL.
GET: Arguments are passed from the webpage to the webserver by tagging them along with the URL. You can see these araguments in your browser address bar.
Example
http://www.imilap.com/profileResultDetail.asp?id=237
Here is is passed as a part of url - this is GET
There is limit on the length of arguments
POST: Arguments are posted to webserver. They are not visible to the user. There is no limit on the lenght of arguments.
get- This has a limit as to number of characters that it can pass. In get the request is sent in the the form of a query string from the web browser to the web server. The max. no. of characters that can be passed are 255. Since the request is sent in the query string that is visible in the address bar of the web browser, this method is not suited for passing confidential info. such as passwords/credit card no’s etc.
post- There is no such limit on the no. of characters that can be passed at a time as the request is passed in the body of the message. So this is useful for passing confidential data. Also, one can pass any length of info. to the server.
If we use POST method, data is submitted in the form of form elementes and if we use GET method, data is submitted in the form of Query String (we can see this in location bar)
we cannot use GET method to send large amount of data.
Leave an Answer/Comment