title: android to node.js on http post
body: <p>I send to nodejs in android</p>
  
  <p>this ---</p>
  
  <pre><code>    try {
          URL postUrl = new URL("http://192.168.25.36:9001/");
          HttpURLConnection con = (HttpURLConnection)postUrl.openConnection();
          con.setDoOutput(true);
          con.setInstanceFollowRedirects(false);
          con.setRequestMethod("POST");
          con.setRequestProperty("Content-Type", "application/json");
  
          OutputStream os = con.getOutputStream();
          os.write(jsonArray.toString().getBytes());
          os.flush();
  
          con.disconnect();
      } catch (IOException e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>I think it send successful</p>
  
  <p>because when i send, my loger is give to me for success</p>
  
  <p>my loger is trace this send function start and end.</p>
  
  <p>when i wrong port on(search like 1234, 9002), its no send function end successful</p>
  
  <p>but why my node.js server is no action?</p>
  
  <p>my node.js server is </p>
  
  <p>this ---</p>
  
  <pre><code>var http = require('http');
  
  
  http.createServer(function(req, res){
      console.log('server start');
      if("POST" == req.method){
          console.log('POST');
      }
  }).listen(SERVER_PORT);
  </code></pre>
  
  <p>i think when i start on node.js</p>
  
  <p>i recv to "server start" on console</p>
  
  <p>but no one word is recv</p>
  
  <p>how is this possible?</p>
  
  <p>i start node.js but no "server start" msg</p>
  
  <p>but my android send function is normaly end</p>
  
  <p>is this right?</p>
  
  <p>i don't know what is this...</p>