chefchanyu has asked for the wisdom of the Perl Monks concerning the following question:

Hi any one know how to make the CPAN via Proxy but not auth required? i had config the proxy for CPAN but keep ask me to enter user and password. Please Help

Replies are listed 'Best First'.
Re: CPAN via Proxy and no auth
by Corion (Patriarch) on Sep 18, 2017 at 07:04 UTC

    If it asks you for the proxy credentials, that is most likely because your proxy asks for credentials.

    I think the best approach will be to talk to your network administrators on how to get to the outside.

      Hi

      But the proxy aren't require user and passwd. i use this proxy for yum and pip all working fine with out user and passwd. only cpan keep asking for user and passwd.
      is there a way to conf no user and passwd on cpan?
        You might put in the contents of your "MyConfig.pm" file, but to try to give you some hints.

        I have( just listing the proxy parts):

        'ftp_passive' => q[1], 'ftp_proxy' => q[http://web-proxy.(myproxy):port], << insert your o +wn 'http_proxy' => q[http://web-proxy.(myproxy):port], 'no_proxy' => q[localhost, 127.0.0.1], 'proxy_user' => q[], 'urllist' => [q[http://mirrors.kernel.org/CPAN], q[/http://cpan.deve +looper.com/], q[http://httpupdate27.cpanel.net/CPAN], q[http://www.pe +rl.com/CPAN/], q[http://www.cpan.org/]],
        I seem to remember running into something like this, but it was related to it not talking correctly through the proxy -- and the error message which said to check proxy user+passwd was misleading (had nothing to do with that -- was something else in my config, but it's been so long, don't remember the exact cause).

        Hope this helps...

Re: CPAN via Proxy and no auth
by rahulruns (Scribe) on Sep 19, 2017 at 05:29 UTC

    Go through this link http://board.issociate.de/thread/267090/How-to-get-CPAN-to-use-Http-Proxy.html

    Also you can use export command to provide your proxy. Next thing is your username/password empty,i.e, do you just press enter for them? If yes then use export PERL_MM_USE_DEFAULT=1. It will press enter for you,i.e, takes all default inputs to questions in cpan. Now if you have username and password for proxy use steps in link provided above