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.
精彩评论