cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl Multi Problem.

From: Surya Kiran Gullapalli <suryakiran.gullapalli_at_gmail.com>
Date: Mon, 6 Aug 2007 17:05:33 +0530

> ostringstream os ;
> os << "http://curl.haxx.se" ;
> string url = os.str();
> curl_easy_setopt(http_handle, CURLOPT_URL, url.c_str()) ;
>

Thanks for the info,
Its working. Now I've another question.

I was using curl_easy functions to download files and the options i'm
setting are

CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA. Now when i use these
options to set each easy handles, I'm getting segmentation violation
when curl_multi_perform call is made.

Is this the correct way of doing?
If so, then how do i get the file descriptors for a particular download?
if not, which functions I've to turn to?

Thanks,
Surya
Received on 2007-08-06