![]() ![]() For METHOD="POST the enctype attribute can be multipart/form-data or application/x-For form submission with METHOD="GET", the browser constructs a URL by taking the value of the action attribute, appending a ? to it, then appending the form data set (encoded using the application/x-The browser divides the URL into parts and recognizes a host, then sends to that host a GET request with the rest of the URL as argument. The submission process for both methods begins in the same way - a form data set is constructed by the browser and then encoded in a manner specified by the enctype attribute. The fundamental difference between METHOD="GET" and METHOD="POST" is that they correspond to different HTTP requests, as defined in the HTTP specifications. POST method variables are not displayed in the URL. GET method is visible to everyone (it will be displayed in the browser's address bar) and has limits on the amount of information to send. POST method used when sending passwords or other sensitive information. GET method should not be used when sending passwords or other sensitive information. A safe URL length limit is often 2048 characters but varies by browser and web server. Yes, since form data is in the URL and URL length is restricted. POST is a little safer than GET because the parameters are not stored in browser history or in web server logs. So it's saved in browser history and server logs in plaintext. GET is less secure compared to POST because data sent is part of the URL. ![]() Multipart/form-data or application/x-Safest to use less than 2K of parameters, some servers handle up to 64KĬan send parameters, including uploading files, to the server. ![]() The browser usually alerts the user that data will need to be re-submitted. GET requests are re-executed but may not be re-submitted to server if the HTML is stored in the browser cache. ![]() Parameters are not saved in browser history. Parameters remain in browser history because they are part of the URL ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |