cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl range option does not work

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Jun 2009 20:14:51 +0200 (CEST)

On Mon, 22 Jun 2009, Ram wrote:

> I tried retrieving the first 100 bytes of a website using the -r 0-100
> option but it gives the full content. It received the whole 120k of the
> page. The range option whatever be the value does not seem to work. Also
> given below is the verbose mode output of the request and curl version that
> i use.

Clearly the server doesn't support it.

A possibly improvement of curl would be to support "0-X" ranges manually for
this case and simply stop transferring at the right point.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-06-22