title: curl with nodejs express - POST data
body: <p>I'm trying to simulate a POST request to a server app based in Express for nodeJS.  It's running on <code>localhost:3000</code> (JS Fiddle: <a href="http://jsfiddle.net/63SC7/" rel="noreferrer">http://jsfiddle.net/63SC7/</a>)  </p>
  
  <p>I use the following CURL line:</p>
  
  <pre><code> curl -X POST -d "{\"name\": \"Jack\", \"text\": \"HULLO\"}" -H "Content-Type: application/json" http://localhost:3000/api 
  </code></pre>
  
  <p>but get the error message:</p>
  
  <pre><code>Cannot read property 'text' of undefined
  </code></pre>
  
  <p>Any ideas what I'm doing wrong?  </p>
  
  <p>Note: I can make a successful GET request using this line:</p>
  
  <p><code>curl http://localhost:3000/api</code></p>