cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl GET hangs at 100%

From: Christopher Snell <chris.snell_at_gmail.com>
Date: Thu, 18 Nov 2004 00:52:32 -0600

Hi,

I'm seeing a strange interaction between curl and a custom server that
I wrote using Perl and POE::Component::Server::HTTP. When running
curl against my URL, the server returns the requested content but curl
does not close the connection. Here are the facts:

1) The URL in question is http://209.142.99.217:48001/graphs/

2) When fetching this URL with a browser or wget(1), the file is
fetched and the connection closes properly.

3) When fetching this URL with curl, the file is fetched but curl
never finishes (unless the --max-time option is passed)

4) The server appears to be sending a correct Content-length header.
Sending (or not sending) the "Connection: close" header has no effect
on the hanging.

5) --trace output can be viewed at http://chrissnell.com/curl_trace.txt

6) Here is what I see on the command line when trying to fetch:

% curl --trace-ascii trace.txt --verbose
http://209.142.99.217:48001/graphs/ > /dev/null
  % Total % Received % Xferd Average Speed Time Curr.
                                 Dload Upload Total Current Left Speed
100 7600 100 7600 0 0 1311 0 0:00:05 0:00:05 0:00:00 1181
[hangs there indefinitely...]

Any help would be much appreciated.

Thanks,

Chris Snell
Received on 2004-11-18