I have a problem with using a proxy server... as the administrators have installed some form of NTLM Authentication, which means the 'plain text' HTTP_PROXY environment variable mechanism no longer works, nor does the cpan configuration method.

I've been trying to use 'cpan' (the batch file) to install some modules... but I can't seem to get 'cpan' to bypass using the proxy server (this works for other languages, etc when I'm using my own internet from home and drop the corporate VPN connection). When the proxy server was not using the NTLM style of authentication, I had set the configuration with something like:-

cpan> o conf http_proxy 'host.com.au:8080' cpan> o conf commit
..and it worked Ok... but now it doesn't.

Worse, I can't seem to disable the use of the proxy entirely, even when off-line from the VPN. I have ensured there is no HTTP_PROXY defined, both the 'system' and 'personal' Config.pm/MyConfig.pm files do not contain any reference to the proxy server address.. and I've even configured cpan so the CPAN server I'm trying to access is listed in the 'no_proxy' configuration item... but whenever cpan tries to get to the 'module listings' file (like 01mailrc.txt.gz), it times out (HTTP 500 error) when trying to get to the proxy server address. (!?Why is it even trying?)

Downloading the module .gz files and trying to install them 'off-line' (after downloading the files through a web browser) doesn't work... and I fear there will be other module dependency issues anyway... As it is, using 'ppm' or 'cpan' still tries to get the 01mailrc.txt.gz file regardless (and fails 'coz it's still looking for the proxy server address... wherever it's getting it from).

Any suggestions on what to try next?

Using Windows 10 Version 6.3.17134, ActiveState Perl v5.16.3... and the proxy server uses some PAC-style thing to 'rediect' requests (Internet Options points to a corporate .pac file).

Thanks.


In reply to Cannot Bypass Proxy Server after Removing It from CPAN Config by ozboomer

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.