cURL / Mailing Lists / curl-library / Single Mail

curl-library

Why "Empty reply from server" failure?

From: Dan Wood <djw_lists_at_pacbell.net>
Date: Tue, 16 Apr 2002 09:19:37 -0700

I'm suddenly getting an "Empty reply from server" failure from
libcurl when connecting to my server, even though I can connect
perfectly fine using a Web browser.

The URL I'm trying to get is:
http://www.karelia.com/watson_support/watson_hello.plist

Using curl -v from the command line, it looks like there's
something that curl generates in the request headers that is
causing my server to reject the request.

Any ideas?

Using Telnet, with headers that curl -v shows me that it's using:

> [localhost:~] dwood% telnet www.karelia.com 80
> Trying 157.22.20.2...
> Connected to www.karelia.com.
> Escape character is '^]'.
> GET /watson_support/watson_hello.plist HTTP/1.1
> User-Agent: curl/7.7.2 (powerpc-apple-darwin1.4) libcurl 7.7.2
> (OpenSSL 0.9.6b)
> Host: www.karelia.com
> Pragma: no-cache
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
>
> Connection closed by foreign host.

Using Telnet, with minimum headers:

> [localhost:~] dwood% telnet www.karelia.com 80
> Trying 157.22.20.2...
> Connected to www.karelia.com.
> Escape character is '^]'.
> GET /watson_support/watson_hello.plist HTTP/1.1
> Host: www.karelia.com
>
> HTTP/1.1 200 OK
> ....

--
Dan Wood
Karelia Software, LLC
dwood_at_karelia.com
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/
Received on 2002-04-16