cURL / Mailing Lists / curl-library / Single Mail


Re: c++ libcurl: telnet

From: Julius Morales Reolizo <>
Date: Mon, 26 May 2008 16:12:38 -0700 (PDT)

----- Original Message ----
From: Daniel Stenberg <>
To: libcurl development <>
Sent: Monday, May 26, 2008 10:43:33 PM
Subject: Re: c++ libcurl: telnet

On Sun, 25 May 2008, Julius Morales Reolizo wrote:

> Thanks, I got it now...

This is an excellent proof of why top-posting is bad and why we want you to
not practise that. You got what?


> but a have a little bit of a problem... why does the libcurl in telnet do
> not show the last line in stdin...

libcurl doesn't _show_ the last line on stdin? What exactly does this mean?
Why would libcurl show the data passed on stdin in the first place?

> How can I send a command in telnet...

You pass the data you want to send on stdin and libcurl will send that to the
peer using telnet. It's bit of an awkward way to work with telnet, and I would
love to see the telnet support improved one day. But on the other hand, telnet
is not really a protocol that fits very well with the other protocols libcurl
supports (due to its interactivity and lack of authentication in the protocol
etc) so it's hard to make it go well with the general libcurl concepts IMHO.

The last line that did not show at the stdin and the same as the behaviour of curl.
For example, I tried it on telnet:// the splash screen shows
but the "Press RETURN to continue:" does not show. On the succeeding screen.
"Press Return to menu", but "or enter 3 letter forcast city code--" is not seen.
Same at the next screen "Selection:" is missing.  Therefore, I can conclude
the last line that should be seen is missing. Well, actually not missing but shown at the next
command that is sent.  I tried it for a whole day same thing is happening.
Command first then the last line then the result of the command minus the last line.
BTW, I apologize for my top posting is kinda normal for a reply button in yahoo.
Received on 2008-05-27