Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have problems with logging in to this webpage using wget:

http://dealers.volare-kinderfietsen.nl/index.php?dispatch=auth.login_form

Normally this is no problem for me. I just want to store the cookies when I login to this page. I use:

wget --save-cookies cookies.txt --keep-session-cookies --post-data="user_login=myloginname&password=mypassword" "http://dealers.volare-kinderfietsen.nl/index.php?dispatch=auth.login_form"

But for some reason it does`nt let me login to this form. I googled some and this page is a cs cart webshop system... maybe anyone has some information about this?

Thanks in advance

share|improve this question

1 Answer 1

I'm not really familiar with CS-Cart, but in examining the HTML of the linked page, I note the following two hidden fields in the form:

<input type="hidden" name="form_name" value="main_login_form" />
<input type="hidden" name="return_url" value="index.php?dispatch=auth.login_form" />

Without creating an account on the site, I can't be certain, but considering that the form tag's target is /, it seems likely that you'll need to include at least the form_name field's value, if not both of them, in your POST in order for CS-Cart to know what to do with the form data.

share|improve this answer
    
Thanks Aaron; Ok I changed the query to: wget --save-cookies cookies.txt --keep-session-cookies --post-data="form_name=main_login_form&return_url=index.php?dispatch=auth.login_‌​form&user_login=mylogin&password=mypass" "dealers.volare-kinderfietsen.nl/…; but no luck.... does it matter that i have a question mark in the value for return_url? –  Peter May 29 '13 at 17:46
    
It shouldn't matter, no. You may wish to use Firebug's net panel, or Wireshark or an equivalent packet analysis tool, to see exactly what's going over the wire in the POST request made from the actual page; perhaps there's some Javascript munging the form data before it's sent to the server, in which case you'll need to replicate its effect in your own requests in order to get back a login cookie. –  Aaron Miller May 29 '13 at 17:49
    
mmmm lo luck.. in firebug I only have thes post items: dispatch[auth.login] Inloggen form_name main_login_form password ******* return_url index.php?dispatch=auth.login_form user_login ********* I tried adding all these paramaters ... No Luck and No javascript :( –  Peter May 29 '13 at 18:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.