How to get POST parameters with wrong header
<p>I am making a POST request from IE using <a href="http://msdn.microsoft.com/en-us/library/cc288060%28v=vs.85%29.aspx" rel="nofollow">XDomainRequest</a>. XDomainRequest does not sent a Content-Type in his header and it is <a href="http://stackoverflow.com/questions/2657180/setting-headers-in-xdomainrequest-or-activexobjectmicrosoft-xmlhttp">not possible to set a custom header</a>. I think this causes PHP to not place the post variables in <code>$_POST</code>.</p>

<p>I can see the parameters are send if I use <code>file_get_contents("php://input")</code> but I am not sure how to parse them correctly without breaking them. Is there a way to force PHP to collect the POST parameters? Or how can I get the variables safely?</p>

<p>I am using <a href="https://github.com/jaubourg/ajaxHooks/blob/master/src/ajax/xdr.js" rel="nofollow">this transport</a> to get XDomainRequest in jQuery and make this call:</p>

<pre><code>jQuery.post('http://domain.de/io/login', 'email=test2@stuff.de&amp;password=xxx', function(response)
{
    if (console) console.log(response);
    alert('response: ' + objectToString(response));
});
</code></pre>

<p>On the PHP side I have:</p>

<pre><code>print_r($_REQUEST, true);
echo file_get_contents("php://input");
</code></pre>

<p>Works fine with Firefox. But Firefox does not use the transport.</p>
