curl-library
Download windows/linux problem
From: Thiago Ribeiro <thiagoribeiro_at_gmail.com>
Date: Fri, 29 Sep 2006 10:13:23 -0300
Date: Fri, 29 Sep 2006 10:13:23 -0300
I'm trying to create a download client on windows using a linux web server
with the file but i'm having problems with the file format (CR / LF). The
libCURL adds end line characteres.
int main(int argc, char *argv[])
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
file = fopen("myFile.exe","w");
curl_easy_setopt(curl, CURLOPT_WRITEDATA, file);
curl_easy_setopt(curl, CURLOPT_URL, "http://www.mySite.com/myFile.exe
");
res = curl_easy_perform(curl);
fclose(arq);
curl_easy_cleanup(curl);
}
system("PAUSE");
return EXIT_SUCCESS;
}
Can someone help me?
Received on 2006-09-29