Loading docs/examples/fopen.c +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ url_fopen(char *url,const char *operation) file->handle.curl = curl_easy_init(); curl_easy_setopt(file->handle.curl, CURLOPT_URL, url); curl_easy_setopt(file->handle.curl, CURLOPT_FILE, file); curl_easy_setopt(file->handle.curl, CURLOPT_WRITEDATA, file); curl_easy_setopt(file->handle.curl, CURLOPT_VERBOSE, FALSE); curl_easy_setopt(file->handle.curl, CURLOPT_WRITEFUNCTION, write_callback); Loading docs/examples/ftpget.c +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ int main(void) /* Define our callback to get called when there's data to be written */ curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite); /* Set a pointer to our struct to pass to the callback */ curl_easy_setopt(curl, CURLOPT_FILE, &ftpfile); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile); /* Switch on full protocol/debug output */ curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE); Loading docs/examples/ftpgetresp.c +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ int main(int argc, char **argv) if(curl) { /* Get a file listing from sunet */ curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.sunet.se/"); curl_easy_setopt(curl, CURLOPT_FILE, ftpfile); curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile); curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response); curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile); res = curl_easy_perform(curl); Loading docs/examples/ftpupload.c +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ int main(int argc, char **argv) curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist); /* now specify which file to upload */ curl_easy_setopt(curl, CURLOPT_INFILE, hd_src); curl_easy_setopt(curl, CURLOPT_READDATA, hd_src); /* and give the size of the upload (optional) */ curl_easy_setopt(curl, CURLOPT_INFILESIZE, file_info.st_size); Loading docs/examples/getinmemory.c +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ int main(int argc, char **argv) curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); /* we pass our 'chunk' struct to the callback function */ curl_easy_setopt(curl_handle, CURLOPT_FILE, (void *)&chunk); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); /* get it! */ curl_easy_perform(curl_handle); Loading Loading
docs/examples/fopen.c +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ url_fopen(char *url,const char *operation) file->handle.curl = curl_easy_init(); curl_easy_setopt(file->handle.curl, CURLOPT_URL, url); curl_easy_setopt(file->handle.curl, CURLOPT_FILE, file); curl_easy_setopt(file->handle.curl, CURLOPT_WRITEDATA, file); curl_easy_setopt(file->handle.curl, CURLOPT_VERBOSE, FALSE); curl_easy_setopt(file->handle.curl, CURLOPT_WRITEFUNCTION, write_callback); Loading
docs/examples/ftpget.c +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ int main(void) /* Define our callback to get called when there's data to be written */ curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite); /* Set a pointer to our struct to pass to the callback */ curl_easy_setopt(curl, CURLOPT_FILE, &ftpfile); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile); /* Switch on full protocol/debug output */ curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE); Loading
docs/examples/ftpgetresp.c +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ int main(int argc, char **argv) if(curl) { /* Get a file listing from sunet */ curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.sunet.se/"); curl_easy_setopt(curl, CURLOPT_FILE, ftpfile); curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile); curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response); curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile); res = curl_easy_perform(curl); Loading
docs/examples/ftpupload.c +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ int main(int argc, char **argv) curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist); /* now specify which file to upload */ curl_easy_setopt(curl, CURLOPT_INFILE, hd_src); curl_easy_setopt(curl, CURLOPT_READDATA, hd_src); /* and give the size of the upload (optional) */ curl_easy_setopt(curl, CURLOPT_INFILESIZE, file_info.st_size); Loading
docs/examples/getinmemory.c +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ int main(int argc, char **argv) curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); /* we pass our 'chunk' struct to the callback function */ curl_easy_setopt(curl_handle, CURLOPT_FILE, (void *)&chunk); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); /* get it! */ curl_easy_perform(curl_handle); Loading