what is the use of get and post method?
34345
Both GET and POST method is used to transfer data from client to server in HTTP protocol but Main difference between POST and GET method is that GET carries request parameter appended in URL string while POST carries request parameter in message body which makes it more secure way of transferring data from client to ...
618828
Get and Post both are used for sending client information to web server means both methods are used to transfer data from client to server. Security : In the case of security post is more secure.
1300487
jsp? username=Smith"); In the target JSP page (or servlet), you can use the getParameter() method of the implicit request object to obtain the value of a parameter set in this way. You can use the setAttribute() method of the HTTP request object.
817543
['Use an HTML <form> with input fields that will send the data to the server.', 'Use an anchor and pass data as query string parameters to the controller.', 'Use javascript and send an AJAX request or a redirect to the server.']
215253
Post method always results in a server state change. If the POST method was idempotent, everything sent and accepted to or from the web server would already have to exist on the server in some form to respond with the same codes and value response. For that reason, POST cannot be idempotent.
435028
GET and POST Methods Most frequently, browser uses two methods two pass this information to web server. These methods are GET Method and POST Method. ... The GET method sends information using QUERY_STRING header and will be accessible in your CGI Program through QUERY_STRING environment variable.
838965
PUT. The PUT method requests that the enclosed entity be stored under the supplied Request-URI. ... The fundamental difference between the POST and PUT requests is reflected in the different meaning of the Request-URI. The URI in a POST request identifies the resource that will handle the enclosed entity.
1457611
PUT is meant as a a method for "uploading" stuff to a particular URI, or overwriting what is already in that URI. POST, on the other hand, is a way of submitting data RELATED to a given URI. As far as i know, PUT is mostly used for update the records. PUT - To update the created document or any other resource.
27640
The GET and POST are two different types of HTTP requests. GET is used for viewing something, without changing it, while POST is used for changing something. For example, a search page should use GET to get data while a form that changes your password should use POST .
1284886
GET is basically used for just getting (retrieving) some data from the server. ... However, the POST method NEVER caches data, and is often used to send data along with the request. To learn more about GET and POST, and the differences between the two methods, please read our HTTP Methods GET vs POST chapter.
12159
PUT method is call when you have to modify a single resource, which is already a part of resource collection. POST method is call when you have to add a child resource under resources collection. RFC-2616 depicts that the PUT method sends a request for an enclosed entity stored in the supplied request URI.
99630
ajaxOptions has the following properties. Url: This property is used to get and set the url. HttpMethod: This property is used to define the form submit method such as POST, GET , PUT , Delete etc. Confirm: This property is used to display the confirmation box before sending request to the server.
839260
You have to give a name attribute on your <select /> element, and then use it from the $_POST or $_GET (depending on how you transmit data) arrays in PHP. Be sure to sanitize user input, though.
1225226
['Create a form to get Data.', 'Post the data using a Ajax request to the Controller.', 'In the Controller receive the data as a object and process it.', 'Return a new object from the Controller.', 'In the Ajax code, receive the new object and display it on the UI.']
356808
The information is encoded as described in case of GET method and put into a header called QUERY_STRING. The POST method does not have any restriction on data size to be sent. The POST method can be used to send ASCII as well as binary data.
1240807
Get (getter) method is used to pass values from the controller to the VF page. Whereas, the set (setter) method is used to set the value back to controller variable. I hope this set of Salesforce interview questions will help you ace your job interview.
1302665
Difference Between get() and load() in Hibernate In hibernate, get() and load() are two methods which is used to fetch data for the given identifier. ... Get() method return null, If no row is available in the session cache or the database for the given identifier whereas load() method throws object not found exception.