Hello,

I am migrating a script from one server to another. In the first server, I set the proxy variable doing ONLY this:

$ENV{HTTPS_PROXY} = $http_proxyurl . ':' . $http_proxyprt;

Then I am able to pass through the proxy absolutely no problem calling loads of different subroutines/packages using SOAP::Data, LWP::UserAgent, etc. When I move the exact same script to another server, it hangs. I have pored over Perl Monks and Google and just can't seem to figure it out... any ideas? I've tried Net::SSL, PERL_LWP_SSL_VERIFY_HOSTNAME=0, not sure what else to try... I am wondering if I have some module installed on the first server that is making it possible. Does $ENV default to any certain module? These are identical scripts.

If you need more info please let me know - thanks!!!

UPDATE: I noticed that libproxy is packaged with RHEL 6 but not 5. /usr/bin/proxy does not exist on the server where the $ENV{HTTPS_PROXY} setting does not work.


In reply to $ENV{HTTPS_PROXY} works in one environment but not another by bigdatageek

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.