title: Can't replicate POST request in CasperJS
body: <p>I am trying to do a POST request from CasperJS:</p>
  
  <pre><code> for(var i in phantom.cookies)
      cookie += phantom.cookies[i].name + '=' + phantom.cookies[i].value + ';';
  
   casper.thenOpen(url, {
      method: 'post',
      data: {
          // some form-data
       },
      headers: {
          'Content-Type': 'multipart/form-data',
          'Cookie': cookie
      }
   }, function(response) {
      if(response.status == 200) {
          require('utils').dump(this.page.content);
      }
   });
  </code></pre>
  
  <p>When I execute the request somewhere else I get the appropriate response, but for some reason I can't replicate the output on CasperJS. Here is an example of a cURL request that did work:</p>
  
  <pre><code>curl -X POST -H "Cookie: cookie" -H "Content-Type: multipart/form-data" -F "field=field" "url"
  </code></pre>