How to get POST parameters with wrong header
I am making a POST request from IE using [XDomainRequest][1]. XDomainRequest does not sent a Content-Type in his header and it is [not possible to set a custom header][2]. I think this causes PHP to not place the post variables in `$_POST`.

I can see the parameters are send if I use `file_get_contents("php://input")` 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?

  [1]: http://msdn.microsoft.com/en-us/library/cc288060%28v=vs.85%29.aspx
  [2]: http://stackoverflow.com/questions/2657180/setting-headers-in-xdomainrequest-or-activexobjectmicrosoft-xmlhttp
How to get POST parameters with wrong header
===

I am making a POST request from IE using [XDomainRequest][1]. XDomainRequest does not sent a Content-Type in his header and it is [not possible to set a custom header][2]. I think this causes PHP to not place the post variables in `$_POST`.

I can see the parameters are send if I use `file_get_contents("php://input")` 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?

  [1]: http://msdn.microsoft.com/en-us/library/cc288060%28v=vs.85%29.aspx
  [2]: http://stackoverflow.com/questions/2657180/setting-headers-in-xdomainrequest-or-activexobjectmicrosoft-xmlhttp