开发者

HttpPost not sending params once over a certain size

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜