开发者

HttpPost not sending params once over a certain size

开发者 https://www.devze.com 2023-03-12 20:02 出处:网络
Here is 开发者_Python百科the code: HttpClient client = new HttpClient(); PostMethod method = new PostMethod(SERVER_URL);

Here is 开发者_Python百科the code:

HttpClient client = new HttpClient();
PostMethod method = new PostMethod(SERVER_URL);
NameValuePair[] data = {
                new NameValuePair("html", html)
};
method.setRequestBody(data);

Once the value for the html var goes over a certain size all params become null for the receiving URL. Any ideas why?


This doesn't sound like a fault on the client side. I suspect that you may be hitting a server-side limit; e.g. a request-size limit specified in the web container configuration ... or a front-end.

0

精彩评论

暂无评论...
验证码 换一张
取 消