如何克服 XHR FF POST 大小限制?
我的 XHR POST REQUEST 被切断。当我尝试重新加载页面时,信息丢失。 Firebug 发送以下消息:
Firebug 已达到 Firebug 请求大小限制。
我的问题是:我有什么选择?
- 如果我在标头中声明 content.length 会起作用吗?
- 我在 apache 配置文件中添加了一行并重新启动它: LimitRequestBody 0
- 我增加了 mysql 配置文件中传输文件的大小
还是浏览器问题?
我能想到的唯一解决方案是将数据切成碎片并将数组一一传输,但我不喜欢这个想法。根据firebug,内容长度为91691。
有什么建议吗?
My XHR POST REQUEST is cut off. When I try to reload my page information is missing. Firebugs sends following message:
Firebug request size limit has been reached by Firebug.
My question is: What are my options?
- Would it work if I declare the content.length in the header?
- I added a line to my apache config file and restarted it: LimitRequestBody 0
- I increased the size of transfer files in mysql config file
Or it is a browser issue?
The only solution I could think of was to cut the data in pieces and transmit the array one by one but I don't like this idea. The content length is 91691 according to firebug.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需要修改 Firebug 设置即可。在浏览器的地址栏中转到about:config,然后查找选项
extensions.firebug.netDisplayedPostBodyLimit
。您应该增加其值才能看到未截断的请求。例如,将其设置为65535。
在这里您可以找到许多其他您可能想要更改的 Firebug 选项: http://getfirebug.com/wiki /index.php/Firebug_Preferences
You just need to modify Firebug settings. In browser's address bar go to about:config, then look for option
extensions.firebug.netDisplayedPostBodyLimit
.You should increase its value in order to see non truncated requests. Set it to 65535 for example.
Here you can find many other Firebug options you may want to change: http://getfirebug.com/wiki/index.php/Firebug_Preferences