Bambookit Home    Middleware

Chapter 19. Middleware

Definition of GET in HTTP

Form data is to be encoded (by a browser) into a URL
Get is the preferred method when making a query.
The recommended usage of GET is for retrieving data .
When the total size of a request (URL+params) approaches or exceeds 1Kb, you are well-advised to use POST in any case.

Definition of POST in HTTP

Form data is to appear within a message body
The recommended usage of POST is to submit data like storing or updating data or ordering a product.
There is no physical limit on the size of the data that is submitted


All queries to a database are sent by default in the URL request string. To change the default behavious to a post then you would need to set the attribute setPost to true.