HTTP 接続を作成したい これが私のコードです
try
{
HttpClient client = new DefaultHttpClient();
HttpPost httpMethod = new HttpPost("http://www.google.co.in/");
String requestBody = "some text";
HttpMethod.setEntity(new StringEntity(requestBody));
HttpResponse response = client.execute(httpMethod);
textView.setText(response.getStatusLine().toString());
}
しかし、「HTTP / 1.0 405 Method not Allowed」エラーを取得できず、取得できません。あなたの助けに感謝します