cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Http get Request ignore response!

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 19 Sep 2011 22:02:07 +0200 (CEST)

On Mon, 19 Sep 2011, ChangCheng wrote:

> Hi developers,This is my first time sent a mail in this list. i hope this is
> right place to ask my question!I would like to have a feature in my project
> that only sent http get request to the server but ignore response(not
> waiting response after get request))! i have checkd the api for
> curl_easy_setopt, but it's seem not have option for my request! any ideal
> for my question?

Three alternative approaches:

1. Return an error from the write callback.

2. Issue just a HEAD request with CURLOPT_NOBODY.

3. Send a range request for only a small part of the resource with
CURLOPT_RANGE.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-19