On Wed, 14 Feb 2001, Neil Galarneau wrote:

> I'm a ruby newbie.  (great language!)
>
> I'm using ruby to automate some tasks I have and would like to
> use it to fetch a file from a password protected web page (i.e. when
> I type the url into the web browser, it responds with a
> Username/Password
> popup which I must fillin BEFORE it shows me the page).
>
> I looked through THE book and didn't see anything that seemed
> relevant.
>
> Is there a way to do this in ruby?  What did I miss?
>
It is not Ruby specific but HTTP.

The server sends a "WWW-Authenticate" header with a method
how to encrypt the password.
Then the client (your program) had to send a "Authorization" header
with the password.


>
> Thanks,
>
> Neil
>


--
Michael Neumann