मैं यहाँ एक htttp कनेक्शन बनाना चाहते मेरी कोडत्रुटि 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());
}
लेकिन im करने में असमर्थ और "HTTP/1.0 405 पद्धति की अनुमति नहीं" हो जाता है त्रुटि मैं हो जाएगा आपकी मदद
हां, 'HttpGet' वर्ग का उपयोग करें और' setParams' विधि का उपयोग करें। – raidfive