When you need to pass some data from browser to the web server you may choose to use one of the HTTP request methods.
- Get
- Post
Get VS Post
Get | Post |
---|---|
Only ASCII allowed | ASCII and Binary |
Data is visible in the URL | Data is NOT visible in URL |
Maximum URL length is 2048 characters | Practically no limit |
Idempotent | Repeated request would change the state |
Browser can cache a get request | Post request data is NOT cached in browser |