Notes
GET and POST Methods
Content of the notes (1)
Page 1
These two methods enables communication between the Client and the Server
1. GET:
-> Requests data from a specific source
-> Query string, name/value pairs sent in the URL itself. Example : /test/demo_form.php?name1=value1&name2=value2
-> Request can be cached
-> Request remains in the browser history
-> Request can of restricted lenght only (Max URL lenght is 2048 Characters)
-> Request is insecure, hence should not be consisting of sensitive data
-> Only ASCII character are allowed in the GET request
2. POST:
-> Submits the data to be processed to a specific resource
-> Data is sent in the body, not in the URL
-> Data has no restrictions on length
-> Data is secured as it cannot be cached or be saved in the browser history
Information
- Description
- This topic covers the basic and main differences between GET and Post methods
- Created by
- Mohit Kakkar
- Views
- 23
- Tags
- Rating