For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > November 2004 > Re: 500 Can't connect to search.cpan.org:80 (Bad protocol 'tcp')









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: 500 Can't connect to search.cpan.org:80 (Bad protocol 'tcp')
Bob Walton

2004-11-29, 4:05 pm

Nirvana wrote:
....
> $ENV{"SYSTEMROOT"} = "C:/WINDOWS/system32";

....
> I'm getting following error:
> 500 Can't connect to search.cpan.org:80 (Bad protocol 'tcp') at web.pl
> line 24.
>
> Any help ?
>


Not sure why, but removing the bogus environment variable setting makes
it work on my system. Somewhere in the bowels of LWP, it must refer to
some Windoze component that needs a valid setting for the SYSTEMROOT
environment variable. I'm not sure why you'd want to mess with that one
anyway -- but I'm pretty sure it will have to have genuine backslashes
in it if Windoze is looking at it.

--
Bob Walton
Email: http://bwalton.com/cgi-bin/emailbob.pl
Bob Walton

2004-11-29, 4:05 pm

Peter Wyzl wrote:

> "Bob Walton" <see@sig.invalid> wrote in message
> news:41a95acb$1_4@127.0.0.1...
> : Nirvana wrote:

....
> command.com and cmd.exe both understand / as well as \ for directory
> seperators.


Bull****. A / does not work as a directory separator in DOS or Windoze,
and never has -- it is a command options or "switch" designator:

D:\junk>dir d:/junk
Invalid switch - "junk".

D:\junk>ver

Microsoft Windows XP [Version 5.1.2600]

D:\junk>

....
--
Bob Walton
Email: http://bwalton.com/cgi-bin/emailbob.pl
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com