in reply to Passing a 401 header with CGI.pm ?

Wow, I'm impressed with the overwhelming response to this in such a short time.

Sorry about the confusion there with my Subject. Yeah basically what I'm trying to do is tell Apache the Username and Password through a form rather than through the browsers pop-up window. The RFC is some good reference material, and it's obvious I need to learn more about how the HTTP protocol works and how browsers and web servers talk to each other. Does anyone know any good reference materials on this subject, preferably online, off the top of their heads ?

Thanks again for your prompt response !

Replies are listed 'Best First'.
Re: Re: Passing a 401 header with CGI.pm ?
by Fastolfe (Vicar) on Dec 02, 2000 at 06:04 UTC
    You can possibly POST your authentication information to the form, and then have the script redirect the user:
    http://username:password@www.example.com/resource/
    However, this puts the username and password not only in the clear for all to see, but in plain-text as part of the request.

    Or, if your username/password is fairly static (never changes through use of the form), just have the form post its results to a CGI script using a variation of the URL above.

Re: (2) Passing a 401 header with CGI.pm ? (good link from nop)
by ybiC (Prior) on Dec 03, 2000 at 18:57 UTC
    If you haven't already found it, good monk nop started this thread recently that contains some good links.
        cheers,
        Don
        striving for Perl Adept
        (it's pronounced "why-bick")