edimusrex has asked for the wisdom of the Perl Monks concerning the following question:

I am wondering if there is a way to allow a script to authenticate it self to a site which is protected with Apache Authentication. Not sure if Mechanize would work for this so any other suggestions would be greatly appreciated

Replies are listed 'Best First'.
Re: Perl and Apache Authentication
by Corion (Patriarch) on Jul 15, 2014 at 17:09 UTC

    What is "Apache Authentication"?

    Have you looked at what WWW::Mechanize has to say about HTTP Authentication?

      The http authentication portion of Mechanize worked like a charm. Thanks for pointing me in the right direction
      Ahh, I didn't see that. I will definitely try it. Thanks
Re: Perl and Apache Authentication
by perlfan (Parson) on Jul 16, 2014 at 17:56 UTC
    Not advisable, but you can send HTTP Basic Authentication credentials as part of the URL:

    http://username:password@log.me.in/protected

    You can also send it via a header as illustrated here.

    Again, neither method is recommended - the first worse than the latter (at least over https).