On 20 Jan 2022 as I do recall,
Harriet Bazley wrote:
> On 20 Jan 2022 as I do recall,
> simon_smith@zen.co.uk wrote:
>
> [snip]
>
> >
> > The cookie part is probably a red herring. The conventional approach
> > would be to use the wget tools to fetch the login page and send
> > username and password using the features wget has built-in. Hey
> > presto, now you're logged in, via wget, and you should be able to get
> > the rest of the stuff you're after.
>
> I've tried "wget --ask-password URL", which prompts me for the password
> but then redirects to fetch the login page as if I were not logged in,
> and "wget --user=USER --password=PASSWORD URL", which also redirects to
> the login page instead of retrieving the one I asked for.
>
> I've tried fetching the login page directly using --user and --pass, but
> it just fetches the 'please log in' prompt instead of the 'you are
> already signed in' prompt.
>
I also tried using --post-data 'user-Login=USER&user_password=PASSWORD'
with no result, where the form in the log-in page is as follows:
<dt><label for="user_login">User name or email:</label></dt>
<dd><input type="text" name="user[login]" id="user_login"/></dd>
<dt><label for="user_password">Password:</label></dt>
<dd><input type="password" name="user[password]" id="user_password"/></dd>
<dt><label for="user_remember_me">Remember me</label></dt>
<dd><input name="user[remember_me]" type="hidden" value="0"/><input type="checkbox" value="1" name="user[remember_me]" id="user_remember_me"/></dd>
<dt class="landmark">Submit</dt>
<dd class="submit actions">
<input type="submit" name="commit" value="Log in" class="submit"/>
</dd>
--
Harriet Bazley == Loyaulte me lie ==
The fact that you're paranoid.... doesn't mean they're NOT out to get you.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org
No comments:
Post a Comment