cURL / Mailing Lists / curl-users / Single Mail

curl-users

--max-filesize and streams

From: Dave <DaveM_at_mich.com>
Date: Wed, 07 Sep 2005 11:20:15 -0400

Hello all.

I am new to cURL and new to the list. I am using cURL to download a
Shoutcast/Icecast stream as follows:

curl.exe --url http://wamu.ic.llnwd.net/stream/wamu_wamu -o
"d:\News\NewsShow.mp3 --max-filesize 12500000 -A 'WinampMPEG/5.0' --retry
32 --retry-max-time 10

It works fairly well but the max-filesize option does not work. From
reading the manual it looks like it is checking for a file size before it
begins downloading. Since this is a stream, and there is no file size, it
just keeps downloading and never stops. Is there a way to get it to just
download the file until the file reaches max-filesize and then have it quit?

I read through the manual didnt find it. But maybe the manual is not
totally up to date so I thought I would ask.

Or maybe it is a bug?

DaveM
AnnArbor, Mich. USA
Received on 2005-09-07