On 2022-01-20 06:46 PM, "Harriet Bazley" <lists@bazleyfamily.co.uk> wrote:
> On 20 Jan 2022 as I do recall,
> cj wrote:
>
> > In article <88ea7bad59.harriet@bazleyfamily.co.uk>,
> > Harriet Bazley <lists@bazleyfamily.co.uk> wrote:
> > > How can I use Netsurf's cookie file with wget to retrieve a web page
> > > that is only accessible to logged-in users
> >
> > wget --help shows there are commands to send user names and passwords
> > when downloading, ftping etc. Have you tried that?
> >
> I'm not sure how that would work, unless I fetched the log-in page
> first? The stats page doesn't request a password - so far as I can
> tell it just doesn't let you fetch it if the relevant browser cookie
> isn't present.
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.
If this web site really was using a cookie for 'authentication', then in theory you should be able to send the cookie to someone else, they could put it on
their computer, and then access the 'protected' area without logging in at all.
That makes no sense.
Try the tools wget already provides - unless it genuinely is a highly eccentric
website, wget should be sufficient.
--
Simon Smith [via webmail]
_______________________________________________
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