I am presently stuck developing on a pretty old machine in our Intranet. It's got RH Linux 6.2, so is running Perl 5.003 and a rather old (5.36) version of LWP.

This version of LWP chokes on the normal $ua->proxy('http','http://username:password@proxy:port/') This version of LWP also lacks the proxy_authentication method that I found by searching Perlmonks.

Installing modern modules is something of a hit-and-miss on this computer, due to the older libraries and program versions. In particular, "use warnings" and "our" are no-no's, and require lots of wild editing of the module files.

How can I make this work with the old LWP, or how new an LWP I would need to install to get this functionality? Would the newest LWP likely install on such a machine with just removing all the "use warnings" and removing the "our"s (probably nuking "use strict" in the process -- not the nicest thing in the world to have to do)? Unfortunately, the server I am programming on is a production machine, and an upgrade to a modern OS and Perl would break things that I would rather not have to fix (like a big PHP site -- ick), and is remote to me. This is the only use of LWP on the server, so I can freely mess with that...


In reply to Ancient LWP and proxies by mpolo

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.