cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: login does not pass through the POST request

From: Pourriels <pourriels.xfm_at_gmail.com>
Date: Fri, 15 Jul 2011 14:02:14 +0800

Thank you for you input, I have read a few things on image input.

Am I doing somthing wrong in this curl command? I pass the coordinates of
the click I want to produce
*curl.exe --data
'login=mylogin&password=mypassword&Button_DoLogin.x=33&Button_DoLogin.y=6'
www.centralgreen.com.sg/login.<http://www.centralgreen.com.sg/login.php?ccsForm=Login>
**php?ccsForm=Login <http://www.centralgreen.com.sg/login.php?ccsForm=Login>
*
*
*
What I find weird is that the result I obtain is the html code of the code
of the initial form, with the password filled but not the login....

                 <td><input id="Loginlogin" value=*""* maxlength="100"
name="login" size="20"></td>
                 <td><input id="Loginpassword" value=*"mypassword"*
maxlength="100" type="password" name="password" size="20"></td>

and then the error message The value in field Username is required. Is there
something wrong with the login input?

Thanks
Pourriels

On Thu, Jul 14, 2011 at 9:33 PM, Peter Sylvester <peter.sylvester_at_edelweb.fr
> wrote:

> On 07/14/2011 12:33 PM, Pourriels wrote:
>
>> Using Firebug, and investigating the source code, I could find only the 3
>> POST parameters (login, password, Button_DoLogin)
>>
> take a closer look ...
>
>
>
>> I try now to use the Tamper plugin for Firefox, and I have indeed 4 POST
>> parameters instead of 3:
>>
>> login=mylogin
>> password=mypassword
>> Button_DoLogin.x=33
>> Button_DoLogin.y=6
>>
>> And the last values for Button_DoLogin.x and Button_DoLogin.y are always
>> different. (Maybe some coordinates?)
>>
>> Anyway.
>>
> ... read the definition of type="image" for input.
>
> <input id="LoginButton_DoLogin" value="Login"...
> type="image"name="Button_**DoLogin"><
>
>
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-users<http://cool.haxx.se/list/listinfo/curl-users>
> FAQ: http://curl.haxx.se/docs/faq.**html<http://curl.haxx.se/docs/faq.html>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-15