+#endif
+ CURL *curl;
+ CURLcode res;
+ FILE * file = fopen (tmp_file_location, "w");
+
+ curl = curl_easy_init ();
+ if (curl)
+ {
+ curl_easy_setopt (curl, CURLOPT_URL, src);
+ curl_easy_setopt (curl, CURLOPT_WRITEDATA, file);
+ res = curl_easy_perform (curl);
+ curl_easy_cleanup (curl);
+ fclose (file);
+
+ }
+ else
+ return -1;