当我们使用ColdFusion中的API调用(POST请求)将参数数量传递给服务器时,如何解决"POST请求超出"错误? [英] How to fix 'POST request Exceeded' error while we passed the number of parameters to the server using API call (POST request) in ColdFusion?

查看:180
本文介绍了当我们使用ColdFusion中的API调用(POST请求)将参数数量传递给服务器时,如何解决"POST请求超出"错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我具有用户角色"admin"的300个用户权限.作为超级管理员,添加了新的管理员用户意味着,需要为此管理员用户启用用户权限.如果我选择低于100,然后通过API调用POST方法将其发送到后端,则可以获得成功响应.

In my Application, I have the 300 user permissions for user role 'admin'. As a super admin, added a new admin users means, need to enable the user permissions for this admin user. If I choose below 100 and sent it to the backend via API call POST method, I can able to get the success response.

但是,如果我选择的平均值超过100,则无法获得成功响应.它会抛出错误消息,例如"POST请求已超出".

But, If I'm selecting more than 100 means, I couldn't able to get the success response. It's throwing error message like 'POST request Exceeded'.

推荐答案

我敢肯定,ColdFusion对此有一些设置.因此,我只是阅读ColdFusion服务器设置文档并找到了解决方案.

I'm sure, ColdFusion has some settings for this. So, I just read ColdFusion server settings docs and found the solution.

  1. 登录到CFAdmin
  2. 转到服务器设置"部分下的设置".
  3. 在页面底部,CF的"POST请求参数的最大数量"为100.我们需要将100更改为300.
  4. 此外,需要设置发布数据的最大大小".默认情况下为20 MB.因此,还需要更改它.
  5. 更改默认值后,我们需要重新启动CF服务器.

这篇关于当我们使用ColdFusion中的API调用(POST请求)将参数数量传递给服务器时,如何解决"POST请求超出"错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆