如何克服 XHR FF POST 大小限制?

发布于 2024-09-06 00:31:35 字数 394 浏览 2 评论 0原文

我的 XHR POST REQUEST 被切断。当我尝试重新加载页面时,信息丢失。 Firebug 发送以下消息:

Firebug 已达到 Firebug 请求大小限制。

我的问题是:我有什么选择?

  1. 如果我在标头中声明 content.length 会起作用吗?
  2. 我在 apache 配置文件中添加了一行并重新启动它: LimitRequestBody 0
  3. 我增加了 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?

  1. Would it work if I declare the content.length in the header?
  2. I added a line to my apache config file and restarted it: LimitRequestBody 0
  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静谧幽蓝 2024-09-13 00:31:35

您只需要修改 Firebug 设置即可。在浏览器的地址栏中转到about:config,然后查找选项extensions.firebug.ne​​tDisplayedPostBodyLimit

您应该增加其值才能看到未截断的请求。例如,将其设置为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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文