title: Symfony2 and cross site POST request => empty data
body: <p>I'm trying to send a XML string to a controller using winhttp.winhttprequest.5.1 from a remote server via POST.
  Doing so on my dev machine runs perfectly fine (hosting client and server on the same machine, same IP). 
  Nevertheless, when my application is deployed on the production server, the POST array is empty.</p>
  
  <p>I think it might be due to CSRF protection, but even if I disable it in config.yml, my controller still get empty data.
  So, I'm quite stuck right here, would appreciate any help.</p>
  
  <p>Sending data using winhttp.winhttprequest.5.1</p>
  
  <pre><code>loObj.Open("POST", url, .F.)
  loObj.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
  loObj.Send("lcFile=" + parsedContent)
  </code></pre>
  
  <p>Symfony2 Controller :</p>
  
  <pre><code>public function getStockFromLogisticsXMLStringAction(Request $request)
  {
      $request = $this-&gt;get('request');
  
      $xml = "";
      $output = $this-&gt;get('webservice.response');
  
      if ($request-&gt;getMethod() == 'POST') 
          $xml = $request-&gt;request-&gt;get('lcFile');
  ...
  }
  </code></pre>
  
  <p>Request dump :</p>
  
  <ul>
  <li><p>Dev machine :
  [request] => Symfony\Component\HttpFoundation\ParameterBag Object        (<br>
  [parameters:protected] => Array                (<br>
  [lcFile] => A1<code>005</code>LNBsLNBs5false2013-05-30T12:06:52201 blablabla</p></li>
  <li><p>Prod machine :
  [request] => Symfony\Component\HttpFoundation\ParameterBag Object        (<br>
  [parameters:protected] => Array                (                )        )<br>
  [query] => Symfony\Component\HttpFoundation\ParameterBag Object        (<br>
  [parameters:protected] => Array       </p></li>
  </ul>
  
  <p>Both environment are running Apache with PHP 5.4.</p>
  
  <p>The fact I'm suspecting some CSRF protection issue is that if I send the exact same XML string to a pure PHP script on the production server dumping the POST data into a file, it works.
  If I send those datas to a Symfony controller, the request is empty...</p>
  
  <p>Thank you.</p>