title: Sending POST Request from bash script
body: <p>I want to execute a <code>bash</code> script after i make a <code>POST</code> request.So far i am using <code>Postman</code> for sending the request , but i was wondering if i can somehow do it from a <code>bash</code> script as well with a <code>json</code> file as parameter.</p>
  
  <p>I have looked into <code>curl</code> so far but it does not work:</p>
  
  <p><strong>bash file</strong></p>
  
  <pre><code>curl -X POST -d req.json http://localhost:9500
  </code></pre>
  
  <p><strong>Json file (<code>req.json</code>)</strong></p>
  
  <pre><code>{
      "id":5,
      "name":"Dan",
      "age":33,
      "cnp":33,
      "children":100,
      "isMarried":0
  }
  </code></pre>
  
  <p>I just get the error :</p>
  
  <pre><code>HTTP/1.0 503 Service Unavailable
  </code></pre>
  
  <p>with the trailing <code>HTML</code> </p>