cURL / Mailing Lists / curl-library / Single Mail


Re: c++ libcurl: telnet

From: Daniel Stenberg <>
Date: Thu, 29 May 2008 09:28:14 +0200 (CEST)

On Thu, 29 May 2008, Julius Morales Reolizo wrote:

> I can see what the response the telnet gave me... by using
> while(!cin.eof()){...}

Yes, libcurl will send the data to stdout by default.

> (I posted my code last tym)...

tym? I realize that's some kind of reference to a previous mail of yours, but
I don't think "tym" is a universally known and accepted acronym for that...

> The problem is sending the commands. Its been days but I can't put a command
> to stdin and send it to the telnet...

Try something like:

$ echo "commands" | ./yourprog

Received on 2008-05-29