All About Java

HTTP Get vs Post Request

HTTP Get vs Post Request


GET Request

POST Request

How to specify <form method=”get” <form method=”post”
Browser History Parameters remain in browser history because they are part of the URL Parameters are not saved in browser history.
Bookmark Possibility Possible Not Possible
Cache Can Can’t be cached
Restrictions on form data type Yes, only ASCII characters allowed. Therefore, file upload is not possible No restrictions. Binary data is also allowed. Therefore file upload is possible
Encoding type (enctype attribute) application/x-www-form-urlencoded multipart/form-data or application/x-www-form-urlencoded Use multipart encoding for binary data.
How request parameters are passed passes request parameter in URL passes request parameter in request body.
Safety Unsafe action Safe action
Distributed & shared Can Can’t

Comments are currently closed.