cURL / Mailing Lists / curl-users / Single Mail

curl-users

dict protocol broken?

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Tue, 9 Dec 2003 23:46:14 +0100

Has anybody got the 'dict' protocol working on Windows using latest
CVS-version of curl?

curl -v --trace-ascii - dict://dict.org/d:fatwa
== Info: Couldn't find host dict.org in the .netrc file, using defaults
== Info: About to connect() to dict.org port 2628
== Info: Connecting to dict.org (66.111.36.30) port 2628
=> Send data, 46 bytes (0x2e)
0000: CLIENT libcurl 7.11.0-CVS.DEFINE ! fatwa.QUIT.
== Info: Closing connection #0

-------

curl closes the connection before the answer is received !?
Doesn't seem right, but I fail to see why.

Using telnet or netcat is no problem:

> echo DEFINE ! fatwa | nc -w2 dict.org 2628
220 pan.alephnull.com dictd 1.8.0/rf on Linux 2.4.18-14 <auth.mime>
<430845.7726.1071007833_at_pan.alephnull.com>
150 1 definitions retrieved
151 "fatwa" wn "WordNet (r) 2.0"
fatwa
     n : a ruling on a point of Islamic law that is given by a
         recognized authority
.
250 ok [d/m/c = 1/0/35; 0.000r 0.000u 0.000s]

----------

Gisle V.

# rm /bin/laden
/bin/laden: Not found

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-09