cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Talking to a raw SSL Socket (aka TCP/IP/SSL)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Sep 2006 15:39:36 +0200 (CEST)

On Fri, 15 Sep 2006, Raymond DeGennaro II wrote:

>> Well, that's pretty much what telnet:// is, isn't it?
>
> Kind of, but I can't just do something like:
> curl telnet://1.2.3.4:5678 --data-ascii "blah blah blah"
> to throw a chunk of text at socket via SSL and get the response back, can I?

First, telnet:// is not SSL so it'd of course only work on a "plain socket",
and then you'd have to:

  echo "blablablah" | curl telnet://1.2.3.4:5678 > output

... but all this said, the telnet support in curl isn't the best integrated
protocol.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-09-15