From: "Rick Wilson" <[EMAIL PROTECTED]>
> Hi all!  I'm working on my second ever perl script for a school
> assignment and running into a quirk that I can't seem to figure out.
> 
> If I telnet to an nntp server that requires authentication and issue a
> command without authenticating first, I get an error message "480
> Authentication Required"
> 
> However, in Perl, when I open a socket connection to a news server
> that requires authentication, issue a command, and wait for a
> response, everything hangs.  It seems rather odd that it would hang
> when telnet doesn't.  Is there any way around this (without using the
> NNTP module - I'm not allowed to)?

How are you issuing the command? Using Net::Telnet? Or Net::Cmd? Or 
raw socket()s?
Are you sure you have the autoflush turned on for the socket?
        (see perldoc -q flush)

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to