android - Error HTTP/1.0 405 Method not Allowed -


i want make htttp connection here code

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()); } 

but m unable , "http/1.0 405 method not allowed" error thankfull help

it means requested url not accept post method. try again get.


Comments

Popular posts from this blog

Delphi Wmi Query on a Remote Machine -