curl-library
Re: c++ libcurl: telnet
Date: Thu, 22 May 2008 16:44:07 -0700 (PDT)
thanks, meaning for example I take Todd Papaioannou's simple example code.
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
curl_easy_setopt(curl, CURLOPT_HEADER, 0);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);should be fine?
All in all, while I keep the connection open (means till I cut the connection...), sends a command and reads data from stdin...
Sorry for the disturbance, I'm just an infant in libcurl compared to you guys... XD
----- Original Message ----
From: Dan Fandrich <dan_at_coneharvesters.com>
To: curl-library_at_cool.haxx.se
Sent: Friday, May 23, 2008 6:35:54 AM
Subject: Re: c++ libcurl: telnet
On Thu, May 22, 2008 at 02:04:58PM -0700, Julius Morales Reolizo wrote:
> a simple code for telnet. I tried to tweak a code using http to produce a function for telnet. sorry for my misuse of words... Thanks again...
telnet is handled a bit differently in libcurl compared to the other
protocols. Rather than using a callback, telnet reads data from the stdin
stream. If you keep that in mind, you should be able to modify one of
the existing example programs without much trouble.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-05-23