cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl and telnet

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 21 Dec 2005 10:54:33 -0800

On Wed, Dec 21, 2005 at 11:33:44AM -0700, Doug McNutt wrote:
> There is such a file at $HOME/.telnetrc which once allowed automated
> logins. On both my Mac OS neXt and my Linux boxes the current
> versions of the telnet tool seem to ignore it.
>
> How about making a -n option for telnet with curl that makes it all work
> again?

The real problem isn't getting curl to find the user name/password (although
-n support for telnet is a good idea if it isn't supported already), but in
sending the user name/password to the remote server. Tranditional telnet
has no guaranteed way to know when to send the user name and password (witness
the recent post where a telnetd sent the "Login" message in Italian or
somesuch). RFC2941 provides a mechanism to do so, but it's not supported
in all servers and it's not supported in curl. Right now, all curl can do
is send the user name (no password) but it uses a hack to do so that isn't
supported in all servers.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-12-21