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

Martin Paul wrote:
> Micah Cowan wrote:
>> 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.
> 
> After some further research, I think you're right. It doesn't work
> correctly through a browser either. When trying to download a restricted
> file from sunsolve.sun.com, it won't ask you for credentials but show an
> error page instead ("You must be logged into SunSolve to download this
> patch"). You have to go to a "Login" link explicitely before trying to
> download files. What a mess.
> 
>> 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).
> 
> The login page is on a different machine, and login is done through a
> form instead of the browsers authentication window. I don't think I can
> simulate that with wget.

Then, how was --http-user, --http-passwd working in the past? Those only
work with the underlying HTTP authentication protocol (the brower's
unattractive popup dialog), which AFAIK can't be affected by CGI forms
or JavaScript, etc.

Even so, simulating form posts with Wget is possible, with --post-data
or --post-file. It's not as complete as it should be, but it is
technically capable of doing almost everything.

>> 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.
> 
> Yes, I guess that should be fine.

After further consideration, I'm reluctantly leaning towards an
all-or-nothing approach ("auth with everything", like previous Wgets). I
strongly prefer not to allow completely broken authentication; but OTOH
the change I proposed would take more time than I really want to spend
on Wget 1.11.1, and would be much riskier (i.e., likely to lead to more
bugs, that would have to result in further work in 1.11.2). I think I'll
punt until 1.12, and give 1.11.1 a simpler workaround-option to invoke
the old behavior.

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

iD8DBQFHq0i47M8hyUobTrERAp3lAJwJgDW8MVhTeK/RUb6vRnZIFQaFSACbB4fk
xwGDSDX8q/GedG6PxJRp1H4=
=asRA
-----END PGP SIGNATURE-----

Reply via email to