search

Home  >  Q&A  >  body text

java - 关于post提交问题(POST提交为什么比GET提交数据量大)

高洛峰高洛峰2802 days ago589

reply all(1)I'll reply

  • PHP中文网

    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-LengthContent-Type heads.

    reply
    0
  • Cancelreply