title: login POST form with cURL
body: <p>I am trying to login to the website www.centralgreen.com.sg/login.php using cURL (first time user of cURL)</p>
  
  <p>I used the Tamper plugin for Firefox, and I have 4 POST inputs:</p>
  
  <pre><code>login=mylogin
  password=mypassword
  Button_DoLogin.x=33
  Button_DoLogin.y=6
  </code></pre>
  
  <p>I tried to use curl again using</p>
  
  <pre><code>curl.exe --data 'login=mylogin&amp;password=mypassword&amp;Button_DoLogin.x=33&amp;Button_DoLogin.y=6' www.centralgreen.com.sg/login.php?ccsForm=Login
  </code></pre>
  
  <p>But the login apparently doesn't go through (the output of this command is the same form, filled with only the password, and an error message <strong>The value in field Username is required.</strong>)</p>
  
  <p>Here is the full list of info I get from Tamper</p>
  
  <pre><code>Host centralgreen.com.sg
  User-Agent Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0
  Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept Language en-us,en;q=0.5
  Accept Encoding gzip, deflate
  Accept Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep Alive 115
  Connection keep-alive
  Referer http://centralgreen.com.sg/login.php
  Cookie PHPSESSID=65fbxxxxxxx02694e3a72xxxxxxxx; Valley_ParkLogin=04E203A459FCxxxxxxxA2DCD9AAE5B9678G08C04F1952155E2482xxxxxxxxxxxxx
  </code></pre>
  
  <p>Is there anything I do wrong? How can I pass the login through the POST form?</p>