← BYTES
HTML·Intermediate·Ref: 2.2.11
What is the difference between the HTTP methods GET and POST when used as a form's `method` attribute?
Have a question about this video? Mention reference 2.2.11 when you contact us.
a.GET appends form data as a visible query string in the URL (bookmarkable, cacheable, size-limited, should be used only for non-mutating requests); POST sends data in the request body (not visible in the URL, no practical size limit, used for anything that changes server state)
b.They are functionally identical, differing only in naming convention
c.POST is always faster than GET for every type of request
d.GET can only be used for forms with no input fields at all
This maps to a broader HTTP convention: GET requests are meant to be idempotent/safe (just retrieving/filtering data, which is why appearing in a visible, bookmarkable, cacheable URL is appropriate), while POST is meant for state-changing operations (submitting an order, creating an account) where exposing the data in a URL (and allowing accidental re-submission via browser back/refresh) would be inappropriate or insecure.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES2211#HTML