HTTP Content-Length and Chunked Transfer-Encoding. Is there a 2GB Limit?

一笑奈何 提交于 2019-12-19 04:07:41

问题


Is a HTTP Content-Length over 2GB or 4GB supported by modern webservers?

How about the chunks in HTTP Chunked Transfer Encoding? Can an individual HTTP chunk exceed 2GB in length?

I need to know to use 32-bit integers or 64-bit integers in my code.


回答1:


From what I have gathered, 64-bit limits are new, especially in the web browsers. Chrome supports them, Opera maybe, and I see a patch for Firefox that hasn't landed yet. I've read posts that say IE returns negative Content-Length, which means it's likely to use 32-bits.

64-bit HTTP lengths looks like the future, but we aren't there yet.



来源:https://stackoverflow.com/questions/8811824/http-content-length-and-chunked-transfer-encoding-is-there-a-2gb-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!