cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl: (52) Empty reply from server

From: Tim Tassonis <timtas_at_cubic.ch>
Date: Mon, 24 Jan 2005 13:46:40 +0100

Hi Daniel

> > curl: (52) Empty reply from server
>
> You meany *any* http url? What about FTP?

It seems any URL from the internet, localhost and our internal network seem to work fine. Our DMZ however not...

We are being NATTED at the Gateway, btw., but apart from curl, no program seems to mind.

ftp does work fine:

curl ftp://sunsite.cnlab-switch.ch/mirror/linux/

results in:

lrwxrwxrwx 1 ftp ftp 14 Mar 02 2004 Linux-HOWTO -> ../Linux-HOWTO
drwxrwxr-x 2 ftp ftp 512 Mar 02 2004 distributions
lrwxrwxrwx 1 ftp ftp 9 Feb 08 2004 kernel -> ../kernel
lrwxrwxrwx 1 ftp ftp 15 Feb 08 2004 lg -> ../LinuxGazette
drwxr-xr-x 17 ftp ftp 1024 Jan 21 23:38 sunsite

>
> > curl -v http://curl.haxx.se/
>
> ...
>
> > curl: (52) Empty reply from server
>
> What if you "telnet curl.haxx.se 80" and do a request manually? Have you tried
> to ethereal to see if the TCP flow looks fine?

telnet works fine, firefox, dillo and w3m also work fine.

Using ethereal, I get the following TCP Stream:

GET / HTTP/1.1
User-Agent: curl/7.12.3 (i686-pc-linux-gnu) libcurl/7.12.3 OpenSSL/0.9.7e zlib/1.2.2
Host: curl.haxx.se
Pragma: no-cache
Accept: */*

ethereal reports 0 bytes as the answer from the remote server.

>
> It seems like there's something wrong with the network on your side. Like a
> firewall or router or something that messes things up.

The strange thing is: No other application seems to mind my network settings. As mentioned before, dillo, w3m, firefox and even telnet all return the requested pages that curl doesn't.

I will try to recompile curl with libcurl statically linked and see if that changes anything.

Bye
Tim

>
> > I'm running this on a Linux 2.6.10 and the most recent curl, compiled with
> > gcc 3.3.5.
>
> I use 2.6.9 with almost exactly your setup otherwise, and I have no problemos.
>
> --
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-24