Newsgroups: comp.lang.perl.modules
From: IneverReadAnythingSentT...@hotmail.com (David Filmer)
Date: 23 Nov 2004 12:05:40 -0800
Local: Tues, Nov 23 2004 3:05 pm
Subject: SOLVED: Running MCPAN behind an authenticating proxy server (kludge)
I'm behind an HTTP proxy server which requires authentication. I was
having difficulty using -MCPAN to do module installs. The docs contain some suggestions which did not help in my situation. LWP does not work (does it EVER work?). So I thought I would share the solution that I arrived at. It's a KLUDGE, but it works. None of the supported CPAN communication methods (LWP, ftp, ncftp, But I was able to get it to work using an excellent, open-source I have NO problems getting cURL to work with my authenticating proxy But how do I get the CPAN module to use cURL? Simple. I lie to it. In 'wget' => q[/usr/bin/curl], To prevent the use of other external methods that won't work, I pass 'lynx' => q[], Don't bother defining anything for the *proxy* keys - leave them null. Now CPAN thinks that my cURL is my wget program (and it thinks wget - } elsif ($f eq "wget"){ Change the scalar assignment to: $src_switch = " -- "; #was: $src_switch = " -O -"; It should work now, but you will get warning messages (and delays) as To prevent the CPAN module from trying LWP and Net::FTP first, I also sub has_usable { And to avoid seeing pesky (and prolific) LWP warning messages, I Now I can use -MCPAN to do module installs behind my authenticating Cheers! You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2009 Google |