Add a const qualifier to the string in
void *getfile( string url, const char *file ); CUROPT_URL requires a c-style string for the url.
curl_easy_setopt(curl, CURLOPT_URL, url.c_str() );
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287