Я хочу сделать Htttp Connection Вот мой кодОшибка HTTP/1.0 405 Метод не разрешены
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 Метод не разрешено» ошибка я буду thankfull your help
Да, используйте класс 'HttpGet' и используйте метод' setParams'. – raidfive