title: Android POST java.io.FileNotFoundException: http://
body: <p>Hi i am trying to send bytes[] via POST in andriod byt i a get java.io.FileNotFoundException: <a href="http://xxx.xxx.xx" rel="nofollow">http://xxx.xxx.xx</a>...  ,  i got the exception when the code reach inputStream = connection.getInputStream(); </p>
  
  <p>any ideas ?</p>
  
  <pre><code>        byte[] array = new byte[]{1,1,2,3,4,4};
  
          String connectionString = "http://" + url + ":" + port + "/" + uploadApp;
  
          URL urle = new URL(connectionString);
  
          URLConnection httppost = urle.openConnection();
          connection = (HttpURLConnection) httppost;
          connection.setDoInput(true);
          connection.setDoOutput(true);
          connection.setRequestMethod("POST");
          connection.setRequestProperty("User-Agent", "Tranz-Version-t1.914");
          connection.setRequestProperty("Accept_Language", "en-US");
          connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
          outputStream = connection.getOutputStream();
  
          outputStream.write(array);
          outputStream.flush();
          outputStream.close();
          inputStream = connection.getInputStream(); // here i got the eception
  </code></pre>