Re: Getting (Bad protocol 'tcp') errors under Solaris
Gisle Aas <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
"Michael J. Freeman" <[email protected]> writes: > 500 Can't connect to rt.innocent.com:443 (Bad protocol 'tcp') This means that getprotobyname("tcp") fails. On many Unix systems this is looked up from /etc/protcols. Try: $ perl -le 'print scalar(getprotobyname("tcp"))' This ought to print 6 on most systems. If it doesn't try to run it under truss to figure out what is happening. --Gisle