cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform abort method and Requesting chunk of data from a http url

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 1 Feb 2010 23:32:59 +0100 (CET)

On Mon, 1 Feb 2010, Bhadraji D wrote:

> 1) After calling curl_easy_perform ,if I want abort the connection .What is
> the good method to so ?

http://curl.haxx.se/docs/faq.html#How_do_I_stop_an_ongoing_transfe

> 2)I want to request particular chuck of data from a url. I have used
> curl_easy_setopt API with"CURLOPT_RANGE"its not working.I have tried with
> sendrecv.c example from libcurl examples ,this also not worked becasue of
> proxy.

Ranges in requests can be ignored by servers.

> Is there any option to MAXDATA_RECV option in libcurl.

No, but you're in charge of the write callback so you can easily make it fail
(which stops the transfer) when it has reached your maximum.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-01