cURL / Mailing Lists / curl-users / Single Mail


curl: (18) transfer closed with 1 bytes remaining to read

From: Christian Bevacqua <>
Date: Thu, 03 Jun 2004 12:22:05 -0700

I'm seeing some strange behaviour downloading files from,
and am wondering if there is some header or other switch i can send to
remedy the problem. For example:

/usr/bin/curl -o ""

consistently returns the error:
curl: (18) transfer closed with 1 bytes remaining to read

This exact problem seems to occur with most attempts to download a file
from, so i suspect their web server is configured to act in
this way. How cann i get around it?

This may be helpful: I first tried the download via the Mozilla
browser, and received all but the last byte (same as using curl). Same
for lynx. However, when i attempt the download via my Safari browser,
the whole file is downloaded successfully! So that leads me to believe
there is some config thing i can send to make it work via curl.

any insights greatly appreciated!


Received on 2004-06-03