POSTを介してWebサーバーにデータを送信しようとしています。
ネットワーク呼び出しを実行するために使用しているコードは次のとおりです。
HttpClient client = new DefaultHttpClient();
HttpConnectionParams.setConnectionTimeout(client.getParams(), 10000);
HttpPost post = new HttpPost(url);
StringEntity se = new StringEntity(json.toString());
se.setContentEncoding("UTF-8");
se.setContentType("application/json");
post.setEntity(se);
HttpResponse response = client.execute(post);
json.toString()
有効なJSONを返すjsonlintを使用して検証しました。
応答として次のエラーメッセージが表示されます。
11-29 11:03:53.080: I/Storefront(1470): Response = <HTML><HEAD><TITLE>Service Unavailable</TITLE></HEAD><BODY><H1>Service Unavailable - Zero size object</H1>The server is temporarily unable to service your request. Please try againlater.<P>Reference #15.163431d0.1322593433.2b040d2c</BODY></HTML>
「ゼロサイズのオブジェクト」というメッセージは、JSONデータが正しく送信されていないと思わせます。