title: PHP CURL not working on 1&1 server
body: <p>I have a php page that calls some API for authentication on the same server, but not the same domain, below is the code:</p>
  
  <pre><code>    $url = "http://www.mydomain.com/api.php";    
      curl_setopt($ch,CURLOPT_URL, $url);
      curl_setopt($ch,CURLOPT_POST, count($_POST));
      curl_setopt($ch,CURLOPT_POSTFIELDS, $_POST);
      curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
      $result = json_decode(curl_exec($ch),true);
      curl_close($ch);
  </code></pre>
  
  <p>It was working fine on godaddy, didnt change anything, curl is enabled, when I check the curl_getinfo it returns 404, which is really weird because in the browser its a valid URL, any ideas ?</p>
  
  <p>Thanks</p>