Html what is the difference between get and post




















It is less than characters. Usually, it is not a good practice to use GET to send sensitive information such as passwords. In some situations, this method helps to bookmark the page.

The form information with the POST method is not visible to everyone. In other words, all variable names and values are attached to the body of the HTTP request. The form information is not visible in the URL. Therefore, it helps to send information securely. There is also no particular limit to the amount of data to send. In addition to that, the POST method provides features such as support for multi-part binary input while uploading files to the server.

This article discussed two important methods of form handling in PHP. A conditional GET method requests that the entity be transferred only under the circumstances described by the conditional header field s.

The conditional GET method is intended to reduce unnecessary network usage by allowing cached entities to be refreshed without requiring multiple requests or transferring data already held by the client. A partial GET requests that only part of the entity be transferred, as described in section The partial GET method is intended to reduce unnecessary network usage by allowing partially-retrieved entities to be completed without transferring data already held by the client.

See section This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification. The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line. POST is designed to allow a uniform method to cover the following functions:.

The posted entity is subordinate to that URI in the same way that a file is subordinate to a directory containing it, a news article is subordinate to a newsgroup to which it is posted, or a record is subordinate to a database.

In this case, either OK or No Content is the appropriate response status, depending on whether or not the response includes an entity that describes the result. If a resource has been created on the origin server, the response SHOULD be Created and contain an entity which describes the status of the request and refers to the new resource, and a Location header see section Responses to this method are not cacheable, unless the response includes appropriate Cache-Control or Expires header fields.

However, the See Other response can be used to direct the user agent to retrieve a cacheable resource. Interview Questions. Company Questions. Artificial Intelligence. Cloud Computing. Data Science. Angular 7. Machine Learning. Data Structures. Operating System. Computer Network. Compiler Design. Computer Organization. Discrete Mathematics. Ethical Hacking.



0コメント

  • 1000 / 1000