curl-users
Re: simple text to/from port
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 12 Sep 2005 22:38:01 +0200 (CEST)
Date: Mon, 12 Sep 2005 22:38:01 +0200 (CEST)
On Mon, 12 Sep 2005, Jim Gottlieb wrote:
> Hi. I need to send and receive CSV text data to a socket and thought curl
> might be a good fit, but I haven't gotten it working.
> I tried:
>
> echo "data1,data2,2,60,60,data3,data4,1" | curl telnet://host:port/
>
> but the results are inconsistent. It doesn't seem to get all the data. But
> sometimes it does.
>
> Is this the wrong tool for the job? Any suggestions? I'm looking for
> something that I could use in a shell script.
I would say that you want nc (netcat) instead.
(But I think that command line is supposed to work with curl...)
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-09-12