cURL / Mailing Lists / curl-users / Single Mail

curl-users

how to download a range into a file?

From: Chaos Mutant§ <chaosmutant_at_gmx.net>
Date: Tue, 26 Nov 2002 18:11:35 +0200

Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

OK, I've had a little problem on cURL 7.10.2 win32 nossl, here's the
example:

I have a 4 byte text file called test.txt in C:\test\ and the text
inside the file is
"aaaa". And there's a 4 byte file test.txt in http://test.com too and
the text
inside is "abba".

Is it possible to download the range 1-2 (="bb") from the remote file to the
local file so that aaaa will become abba?

I've tried the -r1-2 switch but it only outputs "bb" into the screen. I
thought
if I could use the -o switch as well but I can't use two switches at the
same time.
Am I doing something wrong or isn't this feature available yet?

Thanks in advance,
Chaos Mutant

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Received on 2002-11-26