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.
> 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.
The reason is that sunsolve forces you to accept some legal text (the
26k file) before downloading stuff. If you are authenticated, it knows
that you have accepted it already, and will redirect you to the actual
content. If not, you will be presented with the legal text and have to
accept it. That's a dead end for wget as well.
> 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.
Of course the ideal solution would be to push Sun to provide a working
setup on sunsolve.sun.com, but after 5 years of PCA development and
support I know that the attempt will be useless.
Thanks,
Martin.
--
Martin Paul | Systems Administrator
Institute of Scientific Computing | [EMAIL PROTECTED]
Nordbergstrasse 15/C/3, A-1090 Wien | Tel: 01 4277 39403
http://www.par.univie.ac.at/ | Fax: 01 4277 9394