title: how to enable cross domain POST-ing in PHP?
body: <p>I'm tying to send POST data from one site to another (both sites have been developed by us).
  The problem is that the POST variables are not available if the page is requested from another domain.
  Even if I test it locally, but specify the complete url, the POST data is gone.</p>
  
  <p>So, this will work:</p>
  
  <pre><code>&lt;form method="POST" action="test.php"&gt;
  </code></pre>
  
  <p>But this will not:</p>
  
  <pre><code>&lt;form method="POST" action="http://example.com/test.php"&gt;
  </code></pre>
  
  <p>Here is the HTML for the page:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form method="post" action="http://example.com/test.php"&gt;
          &lt;input type="text" name="request" value="" id="" /&gt;
          &lt;input type="submit" value="" id="" /&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>After the comments I got that this should work, I tested it on another server and there everything worked fine indeed. This might have something to do with the fact on the first server https is enabled. But if this is the case, I find it strange that I do get information back but that just the POST data has gone missing.</p>