Response below Voytek Eymont wrote: > I'm trying to follow the > > http://wget.addictivecode.org/FrequentlyAskedQuestions#password-protected > > info to wget login protected pages, but, not having much luck > > the page has > <form action="/main.htm" method="post" name="login_form" id="login_form"> > > I've listed every 'input' below, I've tried a variety of options, ending > with: > > wget > --post-data='username=MYNAME&password=MYPASSWORD&_action_login=_login&_module=login&_template=login&_action=&_local_date=' > --save-cookies=my-cookies.txt > --keep-session-cookies http://www.domain.tld/main.htm > > > but, no go > > I do get a session cookie generated as so: > > # HTTP cookie file. > # Generated by Wget on 2010-04-08 22:01:20. > # Edit at your own risk. > > www.domain.tld FALSE / FALSE 0 PHPSESSID > f2040ad872a7e57c4af7d93a3369877e > > ---------------------------------------------------- > > <input type="Hidden" name="_action" value=""> > > <input type="Hidden" name="_local_date" value=""> > > <input type="text" AUTOCOMPLETE="OFF" id="username" name="username" > value=""size="20" maxlength="80" class="text_inbox" > onchange="if(value.toLowerCase) value=value.toLowerCase();" tabIndex="1"> > > <input type="password" AUTOCOMPLETE="OFF" id="password" name="password" > size="20" maxlength="80" class="text_inbox" tabIndex="2"> > > <input class="sbttn" type="submit" name="_action_login" > onClick="document.login_form._action.value='_login'; return > LoginCheck(login_form);" value="Login >>>"> > > <input type="Hidden" name="_module" value="login"> > > <input type="Hidden" name="_template" value="login"> > > ------------------ > wget --version > GNU Wget 1.10.2 (Red Hat modified)
It looks to me (from the JavaScript) like _action ought to have the value "_login" (rather than empty), and _action_login should have the value "Login". And be sure that your username is entered as lowercase, as it looks like there's JavaScript to massage that. -- Hope that helps, Micah J. Cowan http://micah.cowan.name/
