Android : HTTP Post Issue

Posted by Ram on Stack Overflow See other posts from Stack Overflow or by Ram
Published on 2010-05-02T15:26:39Z Indexed on 2010/05/02 16:07 UTC
Read the original article Hit count: 206

Filed under:
    HttpClient client = new DefaultHttpClient();
    String data = "valid SOAP REquest";     

HttpPost httpPost = new HttpPost("valid url"); Log.d("inside", "created http post"); try { ByteArrayInputStream baos = new ByteArrayInputStream(data.getBytes());

        Log.d("inside", "firing request...");
        HttpResponse httpResponse = client.execute(httpPost);
        Log.d("inside", "request sent" + httpResponse.getStatusLine().getStatusCode());

Always, I get the status code as 405. I tried request queue as well.. sneding the byte array as part of the request queue, still the same issue.

© Stack Overflow or respective owner

Related posts about android