PHP中文网2017-04-18 10:48:26
It’s okay for the interviewer to ask this, but it’s problematic for you to ask this here. Because the question is unclear.
Do you want to askwhy the amount of data submitted by POST can be larger than that by GET?
The answer is that the implementation of browsers and HTTP servers limits the length of the URL, thereby limiting the amount of data that GET can submit.
Or you want to askfor the same data, if you use POST to submit it, will it consume more traffic than GET submission?
It will be a little bit more. You will know after writing the full text of the two methods. More Content-Length
和 Content-Type
heads.