cURL / Mailing Lists / curl-library / Single Mail


RE: c++ libcurl: telnet

From: Gary Maxwell <>
Date: Mon, 26 May 2008 16:53:15 -0700

Julius Morales Reolizo wrote:
> The last line that did not show at the stdin and the same as the
> of curl.
> For example, I tried it on telnet:// the
> 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
> 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
> but shown at the next
> command that is sent. I tried it for a whole day same thing is
> Command first then the last line then the result of the command minus
> last line.
> BTW, I apologize for my top posting is kinda normal for a reply button
> yahoo.
How are you displaying the data received from the server (wunderground)?
If you are writing the data directly to a console window, the data is
usually buffered until (1) a newline is found in the data, or (2) a read
request is made to the window (implied flush), or (3) the contents of
the buffer are flushed.

This would explain why you are not seeing the last prompt received by
the server, since there is no newline present, and I assume the data you
are sending back to the server does not originate from your console

Feel free to post your application code, then we might be able to offer
better assistance.

Received on 2008-05-27