|
Erstellt von Mohit Kakkar
vor etwa 7 Jahre
|
|
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
Möchten Sie kostenlos Ihre eigenen Notizen mit GoConqr erstellen? Mehr erfahren.