Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6323
| From | Harriet Bazley <harriet@bazleyfamily.co.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Accessing a password-protected page via wget |
| Date | 2022-01-22 12:17 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <cd6cc5ae59.harriet@bazleyfamily.co.uk> (permalink) |
| References | <dd8749ae59.harriet@bazleyfamily.co.uk> <ssgm31$9al$1@dont-email.me> |
On 22 Jan 2022 as I do recall,
druck wrote:
> On 21/01/2022 13:43, Harriet Bazley wrote:
> > I've been trying to use wget to retrieve a page that is only accessible
> > to logged-in users (user stats - so that I can analyse them and keep a
> > running record of changes).
> > Basically, I can't seem to get the correct syntax for the site to
> > receive/recognise my name and password in the first place, let alone to
> > serve up the stats page requested....
>
> It will be possible to do this with wget (or curl), but as you can see
> from the other responses, it involves sprinkling fairy dust over the
> correct magic runes. It may be easier to use Python with the requests
> module for this, as it can set up auth headers and suchlike.
>
Given that I can *see* the relevant cookies in Netsurf (and can copy
them from the text file they're stored in), it might be easier just to
find the format used by Wget and manually construct a file to be used
via --load-cookies.
If I were actually certain that I've got the cookie-handling sections of
Wget at all working. Can anyone suggest a test page that *should* work
without requiring hidden hashed magic values?
--
Harriet Bazley == Loyaulte me lie ==
What's the point in being grown up if you can't be childish sometimes?
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Accessing a password-protected page via wget Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-01-21 13:43 +0000
Re: Accessing a password-protected page via wget Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-01-21 15:11 +0000
Re: Accessing a password-protected page via wget Kevin Wells <kev@kevsoft.co.uk> - 2022-01-21 16:54 +0000
Re: Accessing a password-protected page via wget Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-01-21 17:45 +0000
Re: Accessing a password-protected page via wget Steve Fryatt <news@stevefryatt.org.uk> - 2022-01-21 18:57 +0000
Re: Accessing a password-protected page via wget Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-01-21 20:28 +0000
Re: Accessing a password-protected page via wget druck <news@druck.org.uk> - 2022-01-22 10:25 +0000
Re: Accessing a password-protected page via wget Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-01-22 12:17 +0000
csiph-web