Sunday, May 26, 2019

When to use GET vs POST? (Caching vs Request size)

GET and POST are the most popular http methods used on the web. Each carries its own differences and properties. It can confusing to get to choose when to use POST over GET. I made a video explaining my take on the differences, use cases and the benefits of using GET and POST. Check it out, here is a summary table.

Property
GET
POST
Body
No
Yes
Data Request Limit
Yes (2048 bytes)
No limit
Data Type
Ascii only
Any data
Safe
Yes
No
Idempotent
Yes
No
Caching and Prefetching
Yes
No
Bookmarkable
Yes
No
Security?
No
Yes


Watch the video here 






No comments:

Post a Comment

Share your thoughts

Note: Only a member of this blog may post a comment.