Thank you for your responses!

I haven't had any time to work on this script today, but will be doing so again tomorrow. Hopefully by the end of tomorrow and early next week at the latest I'll be able to provide feedback to elaborate on my issue/situations I'm still encountering, or hopefully display a solution that worked for me!

Look forward to sitting down and trying to implement what you guys have suggested. I know I've already tried the 'http://username:password@site.com/rest/of/url' approach that kschwab suggested and it seemed to not work. Perhaps I implemented it wrong, but it seemed fairly straightforward. Later on I'll copy some direct code in here to show you what failed for me.

I've also poked at LWP but probably not to the extents I may have needed. Furthermore, tangent, you reference a $localfile. I'm afraid I'm not sure what the localfile is supposed to be pointing to.

Thanks again for the ideas and comments - it's my first time posting here and I'm happy to see there is an active and HELPFUL community.


In reply to Re: Trying to allow cgi script to access htpasswd protected files. by Anonymous Monk
in thread Trying to allow cgi script to access htpasswd protected files. by Aquilae

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.