Corion's example shows how to put proxy authentication into the HTTP_PROXY settings.
HTTP_PROXY=http:/user:password@proxy:port
The issue we have and may apply to you is that our proxy picks up the authentication from the O/S via some sort of domain setting. This means that apps on Windows can (sometimes) pass the proxy without further problems but on our Unix boxes and some W32 apps manual authentication is needed and with password changes that can make setting HTTP_PROXY interesting.

We had to get security to allow a selection of our servers access to CPAN sites direct without the proxy.

Also you can set FTP_PROXY as we have found that that can help. Also http_proxy and ftp_proxy. We set them all to the same value as HTTP_PROXY by setting HTTP_PROXY and then setting the others all to HTTP_PROXY. This is on Unix, Wintel may be different.

HTTP_PROXY=http://proxy:port FTP_PROXY=$HTTP_PROXY http_proxy=$HTTP_PROXY ftp_proxy=$HTTP_PROXY

In reply to Re^4: ftp problem on cpan client on windows with strawberry perl by tweetiepooh
in thread ftp problem on cpan client on windows with strawberry perl by targetsmart

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.