title: Curl POST request for wordpress install
body: <p>Im trying to do a post request in a shell to invoke a wordpress install, but wordpress just tells me "you must provide an e-mail address". Here is what I have:</p>
  
  <pre><code>curl -X POST -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:12.0) Gecko/20100101 Firefox/12.0" -e "http://dev.example.com/yeshello/wp-admin/install.php?step=2" -H "Content-Type:application/x-www-form-urlencoded" -H "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -H "Accept-Encoding:gzip, deflate" --data "?step=2&amp;weblog_title=yeshello&amp;user_name=admin&amp;admin_password=admin&amp;admin_password2=admin&amp;admin_email=mathias%40example.com&amp;Submit=Install+WordPress" http://dev.example.com/yeshello/wp-admin/install.php
  </code></pre>
  
  <p>Ive managed to get it to work in a Chrome plugin by the name Postman
  here is what I've set up there:</p>
  
  <h2>Headers</h2>
  
  <p>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:12.0) Gecko/20100101 Firefox/12.0 Referer: <a href="http://dev.feed.no/yeshello/wp-admin/install.php?step=2" rel="nofollow">http://dev.feed.no/yeshello/wp-admin/install.php?step=2</a>
  Content-Type: application/x-www-form-urlencoded
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,<em>/</em>;q=0.8
  Accept-Encoding: gzip, deflate</p>
  
  <h2>Raw</h2>
  
  <p><em>this is raw data, the plugin have a field supporting that</em></p>
  
  <p>step=2&amp;weblog_title=yeshello&amp;user_name=admin&amp;admin_password=admin&amp;admin_password2=admin&amp;admin_email=mathias%40feed.no&amp;Submit=Install+WordPress</p>
  
  <h2>URL</h2>
  
  <p><em>and finally there is a url field</em></p>
  
  <p><a href="http://dev.example.com/yeshello/wp-admin/install.php?step=2&amp;weblog_title=yeshello&amp;user_name=admin&amp;admin_password=admin&amp;admin_password2=admin&amp;admin_email=mathias@feed.no&amp;Submit=Install+WordPress" rel="nofollow">http://dev.example.com/yeshello/wp-admin/install.php?step=2&amp;weblog_title=yeshello&amp;user_name=admin&amp;admin_password=admin&amp;admin_password2=admin&amp;admin_email=mathias@feed.no&amp;Submit=Install+WordPress</a></p>