views:

29

answers:

0

Hello

In my android application i want to append body to the url. I want to append a string to this url. Could anyone let me know how i can append it.

URL url=new URL("http://220.226.22.57:8780/WEB-3/client/requests/sgduTimeStampRequest.action")

        //URLConnection conn=url.openConnection();
        HttpURLConnection    conn = (HttpURLConnection) url.openConnection();
        conn.setDoInput(true);
        conn.setRequestProperty("aContentType","text/plain");
        conn.setRequestProperty("aBody","all=sgdu");
        conn.setRequestMethod("POST");
        conn.setDoOutput(true);  
        SGDUParser parser=new SGDUParser(context);
        parser.parseUpdateBinaryFile(conn.getInputStream());

Please let me know your valuable suggestions.

Thanks in advance:)