This may seem obvious, but when using POST and GET, you use another byte in the method name.
In addition, if you have (several) data to send, using GET will encode the URLs (this means that the number of bytes generated and sent will be larger than the data size itself), while POST will consume more bytes (in general case), since the request additionally contains the Content-Type: application/x-www-form-urlencoded header Content-Type: application/x-www-form-urlencoded , probably the Content-Length header, as well as the same URL-encoded data as the GET.
If you have some binary data to send, the question is not fulfilled, since you cannot do it with GET.
We are talking about pennies here, but if you accumulate pennies ...
In the end, the GET request will be shorter and for the same network bandwidth will be faster than POST.
To send binary data, PUT will be faster than POST (based on the same logic and because POST will use multipart/form-data header headers), but browser support is more limited for PUT requests.
xryl669
source share