Telnet with libcurl

BlitzMax Forums/Brucey's Modules/Telnet with libcurl

Hezkore(Posted 2009) [#1]
Does anyone have any example code on how to use libcurl with Telnet?, cause I just can't figure it out. x_X


deps(Posted 2009) [#2]
Isn't curl only for downloading files?
I would use sockets to connect to a telnet server.


Hezkore(Posted 2009) [#3]
I'm not sure... but I haven't been able to find a decent telnet client example either...


Brucey(Posted 2009) [#4]
You can do ssh to a box with bah.libssh2. Now, I realise that this is not strictly telnet, but it can achieve similar results if you do not require a proper "interactive" environment.
The provided example demonstrates secure login, issuing of a environment variable change, and calling "ls" on the remote server, returning the result.

Sure the communication level is a tad "low", but it does work.

Otherwise, I've also had difficulty finding a good, free telnet library. (which is why I decided to do libssh2, for the similar functionality).