All pastes #425975 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-05 20:49 UTC
rendered paste body
curl_easy_setopt(curl, CURLOPT_URL, url);
     /* 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_WRITEDATA, &ftpfile);

     /* Switch on full protocol/debug output */
     curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);