title: How to send HTTP POST parameters using Android AsyncHttpClient?
body: <p>I am trying the <a href="http://loopj.com/android-async-http/" rel="nofollow"><code>AsyncHttpClient</code></a> library for Android and am trying to make a HTTP POST with it to my Express (NodeJS) server and I am having difficulties attaching parameters to the POST request.</p>
  
  <p>This is what I do:</p>
  
  <pre><code>AsyncHttpClient httpClient = new AsyncHttpClient();
  RequestParams requestParams = new RequestParams();
  requestParams.put("username", usernameEditText.getText().toString());
  requestParams.put("password", passwordEditText.getText().toString());
  httpClient.post("http://1.2.3.4/sign-up", requestParams, new JsonHttpResponseHandler() {
      // here I override the onSuccess and onFailure methods
  }
  </code></pre>
  
  <p>But when the request comes to the Express server, I can't find the parameters anywhere. I was used to finding the POST parameters in <code>req.body</code>, but:</p>
  
  <pre><code>app.post('/sign-up', function(req, res) {
    var username = req.body.username; // throws error because req.body is undefined
  });
  </code></pre>
  
  <p>Is the <a href="http://loopj.com/android-async-http/" rel="nofollow"><code>AsyncHttpClient</code></a> library broken or am I doing something wrong on either side?</p>