title: cURL : (52) Empty reply from server
body: <p>I am writing a remote API to handle some backend processes and my API typically takes about 30 seconds to complete the operation (I am fine with the wait time, it is an internal process). When I make a cURL call to the API, I get the following message <code>curl: (52) Empty reply from server</code>. 
  I need the cURL to wait for the response, <code>-m</code> and <code>connect-timeout</code> do not seem to help. </p>
  
  <p>Additional information : I am using Sinatra for the backend API</p>