InterviewSolution
| 1. |
Explain The Common Methods Of Sending A Request To A Server? |
|
Answer» The two most common methods of sending a request to a server are :
GET method: The get method is mostly used for non destructive operations. These operations get data from the server and does not change the data on it. A good example of the application of the SEARCH query to a server. In most of the cases GET will send all of the data to be sent in the form of a query string. POST method: The POST method is primarily used for destructive operations. These operations can change the data on a server. A good example is a user saving an entry on a SITE will get the POST request. These requests are not CACHED by the browser. A query can be a part of a url but any data that is to be sent is done separately as post data. The two most common methods of sending a request to a server are : GET method: The get method is mostly used for non destructive operations. These operations get data from the server and does not change the data on it. A good example of the application of the search query to a server. In most of the cases GET will send all of the data to be sent in the form of a query string. POST method: The POST method is primarily used for destructive operations. These operations can change the data on a server. A good example is a user saving an entry on a site will get the POST request. These requests are not cached by the browser. A query can be a part of a url but any data that is to be sent is done separately as post data. |
|