title: Send POST request using CURL command and retrieve using PHP
body: <p>I'm trying to HTTP POST using the following command on linux</p>
  
  <p>curl -X POST --data-ascii "a=hello world" <a href="http://www.mysite.com/controller/function_name" rel="nofollow">http://www.mysite.com/controller/function_name</a></p>
  
  <p>Its not working, my server is not accepting the POST at all.</p>
  
  <p>My PHP code is:</p>
  
  <pre><code>&lt;?php
  print_r($_POST);
  ?&gt;
  </code></pre>
  
  <p>whereas if I try this on my local machine it works.</p>
  
  <p>For ex.
  curl -X POST --data-ascii "a=hello world" <a href="http://192.168.1.10/controller/function_name" rel="nofollow">http://192.168.1.10/controller/function_name</a></p>
  
  <p>Also, the server is shared host, is it a problem?</p>
  
  <p>What am I doing wrong?</p>