Well, you will have to set the appropriate content type, e.g application/octet-stream
and the write your content to the connections output stream.
conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true); // Allow Outputs
conn.setRequestMethod("POST");
conn.setRequestProperty("Connection", "Keep-Alive");
conn.setRequestProperty("Content-Type", "application/octet-stream");
outputStream = connection.getOutputStream();
outputStream.writeBytes(lineEnd);
outputStream.close();
This will transfer the raw binary data, if you want to upload a file, check https://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/