{
StringBuffer ret = null;
try {
// connect to the server
URL url = new URL(urlStr);
HttpURLConnection urlConnection = (HttpURLConnection)url.openConnection();
// send a POST
urlConnection.setRequestMethod("POST");
urlConnection.setDoOutput(true);
OutputStream outStream = urlConnection.getOutputStream();
byte[] conversionHelper = inputString.getBytes();
outStream.write(conversionHelper);
outStream.flush();
// read the answer of the server and store it in a string
ret = new StringBuffer();
InputStream inStream = urlConnection.getInputStream();
int bytes = 0, deltaBytes = 0;
int maxBytes = urlConnection.getContentLength();
// while ( (bytes = inStream.available()) > 0) {
while (bytes < maxBytes) {
deltaBytes = inStream.available();
byte buffer[] = new byte[deltaBytes];