cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_CONNECT_ONLY

From: Michal Marek <mmarek_at_suse.cz>
Date: Tue, 15 Apr 2008 11:33:08 +0200

Ramprakash Jelari thinakaran wrote:
> I have set CURLOPT_CONNECT_ONLY. and invoking curl_easy_perform()
>
>
> std::ostringstream httpResponse;
> curl_easy_setopt(ehandler, CURLOPT_WRITEFUNCTION, BURAdataWrite_Callback);
> curl_easy_setopt(ehandler, CURLOPT_WRITEDATA, &httpResponse);

What is ehandler and BURAdataWrite_Callback? Typos or secret variables?

> curl_easy_setopt(handler, CURLOPT_CONNECT_ONLY, 1);
> ret = curl_easy_perform(handler);
>
>
> *In this case, is it a valid operation to capture the reply from Server
> through write callback?*

CURLOPT_CONNECT_ONLY disables any data transfer in curl_easy_perform,
your write callback won't be called at all.

Michal
Received on 2008-04-15