This is a question that seems to come up every few weeks on
library related lists, though with no great answers (perhaps
because there isn't one!) Anyway, is seemed like maybe the
libwww folks could send some light on the issue. The question
usually goes something like:
"Has anyone solved the problem of using a script to automatically
login to sites that use HTTP basic authentication i.e.. the type
that
pop-up a dialog box asking for username and password ?"
While I can write a script to grab a single page (thanks to the
great example in lwpcook.pod), the issue remains of how to get the
credentials back to the browser so that future requests contain
the Authorization header, though I guess that isn't allowed .
Getting just a single page and not authenticating for the whole
site isn't really useful for the task at hand. Speculation is
that some sort of proxying or url re-writing to redirect to a
script with the correct header for each request might work, but I
can't seem to find a good example of such.
Any thoughts/suggestions on this topic would be much appreciated.