-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Paul wrote:
...

> I won't go into details, but wget is used to download files from
> sunsolve.sun.com, which requires authentication. Up to wget v1.10.2 a
> command like that worked fine:
> 
> wget --http-user=xxx --http-passwd=yyy
>   "http://sunsolve.sun.com/pdownload.do?target=patchdiag.xref";
> 
> With wget v1.11, it fails. The problem seem to be in the unusual
> authentication prodecure used by sunsolve, which now fails with the
> change in wget described as "Only send authentication credentials after
> we've received a challenge from that host".
> 
> I'm attaching debug output from wget 1.10.2 and wget 1.11, if you care
> enough to take a look at it.
> 
> I guess my real question is whether there's an option to force the old
> behaviour (at least for certain hosts) with wget v1.11 (actually I'm
> afraid there isn't, after taking a look at the source).

Is there no way to get the server to issue an authentication challenge?
A browser would never send authentication credentials without first
being challenged, which is part of why I was confident I could get rid
of Wget's insecure practice of doing so.

It looks like it downloads patchdiag.xref in either case, but is ~2500k
with 1.10.2, whereas it's only ~26k with Wget 1.11.

It'd be better, in some sense, to figure out how to get the server to
issue auth credentials (probably, you have to visit a different path
first). But I'm not opposed to restoring the old behavior, or a version
of it. The old one sent regardless of the host; perhaps an option that
"pretends" that a Basic challenge has already been sent for certain
hosts. Such an option would never apply to, say, Digest authentication,
since the challenge includes information needed to form the response.

Perhaps something like: --over-eager-auth=foo.com,bar.org

- --over-eager-auth=* would be accepted, provided -H was not active.
Should probably take care that it not automatically send to redirects,
though?

An equivalent .wgetrc command would be added as well.

(I've Cc'd the list for feedback.)

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHqeyg7M8hyUobTrERAsXbAJ9oq/ZrSz2tngWbpQv1OHeUNaKeRwCdHOgz
Hok7tb3Jf2PezBtvYORo7eI=
=WZJu
-----END PGP SIGNATURE-----

Reply via email to