·In doGet() the parameters are appended to the URL and sent along with header information. In doPost (), send the information through a socket back to the webserver and it won't show up in the URL bar.
·The amount of information you can send back using a GET is restricted as URLs can only be 1024 characters. You can send much more information to the server by using post and it's not restricted to textual data either. It is possible to send files and even binary data such as serialized Java objects!
·doGet() is a request for information. It does not change anything on the server. doPost () provides information that the server is expected to remember.
No comments:
Post a Comment