0

Here is 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?

4

1 回答 1

0

这听起来不像是客户端的错误。我怀疑您可能正在达到服务器端限制;例如,在 Web 容器配置中指定的请求大小限制……或前端。

于 2011-06-15T02:26:26.097 回答