LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2005, 11:26 AM   #1
Garp
Member
 
Registered: Jul 2003
Location: Oahu, Hawaii, USA
Distribution: Ubuntu, Debian, RHES
Posts: 57

Rep: Reputation: 15
perl shell proxy setup


I'm getting a little frustrated trying to run some perl (LWP) services on a gentoo box sitting behind a proxy.

I'm not sure of how else to get at the environment settings for perl, but figured starting with
per -MCPAN -e shell
would be good. If that'll go through the proxy and pickup stuff surely that'd be all that was needed.
I can't even get that to go through the proxy. http_proxy, ftp_proxy and no_proxy environment variables are already set, which it picks up as it goes throught the initial configuration, yet when it tries to connect and grab a mirrored.by file, it fails.
I can see it from inside Firefox under gnome though. Links can't, and neither can WGET however.

WGET returns 16:24:48 ERROR -1: Malformed status line.

I do know that the proxy server requires user@hostort for ftp transfers, but I'm stumped as to how you actually apply this?
 
Old 10-05-2005, 05:31 AM   #2
Garp
Member
 
Registered: Jul 2003
Location: Oahu, Hawaii, USA
Distribution: Ubuntu, Debian, RHES
Posts: 57

Original Poster
Rep: Reputation: 15
Fixed wget by editing the relevant /etc configuration file for it to manually specify the proxy.

I've resolved the perl issues too. Seems that unlike the rest of the system, perl needs "http://" in front of its proxy environment variables (including the ftp one, a quirk of the proxy I guess)
 
Old 10-05-2005, 06:23 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
No, Lynx needed prepending too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell and perl scripts srnerkar1 Programming 2 12-03-2005 04:07 PM
Linux shell proxy how to ? michael_util Programming 5 02-16-2005 05:45 PM
proxy problem in shell smokylux Linux - Networking 3 12-17-2004 06:34 AM
black hole proxy perl script thegeekster Linux - Newbie 5 12-18-2003 05:18 AM
shell or perl? l_9_l Programming 8 05-10-2002 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration