login POST form with cURL -



login POST form with cURL -

i trying login website www.centralgreen.com.sg/login.php using curl (first time user of curl)

i used tamper plugin firefox, , have 4 post inputs:

login=mylogin password=mypassword button_dologin.x=33 button_dologin.y=6

i tried utilize curl 1 time again using

curl.exe --data 'login=mylogin&password=mypassword&button_dologin.x=33&button_dologin.y=6' www.centralgreen.com.sg/login.php?ccsform=login

but login apparently doesn't go through (the output of command same form, filled password, , error message the value in field username required.)

here total list of info tamper

host centralgreen.com.sg user-agent mozilla/5.0 (windows nt 5.1; rv:2.0) gecko/20100101 firefox/4.0 take text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 take language en-us,en;q=0.5 take encoding gzip, deflate take charset iso-8859-1,utf-8;q=0.7,*;q=0.7 maintain live 115 connection keep-alive referer http://centralgreen.com.sg/login.php cookie phpsessid=65fbxxxxxxx02694e3a72xxxxxxxx; valley_parklogin=04e203a459fcxxxxxxxa2dcd9aae5b9678g08c04f1952155e2482xxxxxxxxxxxxx

is there wrong? how can pass login through post form?

try using -f alternative instead of --data.

http://curl.haxx.se/docs/manpage.html#-f

basically, changes content type header to:

content-type: multipart/form-data

this may give improve result.

curl login

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -