/********* Sample code generated by the curl command line tool ********** * All curl_easy_setopt() options are documented at: * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html ************************************************************************/ #include int main(int argc, char *argv[]) { CURLcode ret; CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, (curl_off_t)64d); curl_easy_setopt(hnd, CURLOPT_URL, "ftp.xxxxxxxxxxx.com/mnn/build.txt"); curl_easy_setopt(hnd, CURLOPT_PROXY, "http://10.999.999.99:81"); curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); curl_easy_setopt(hnd, CURLOPT_USERPWD, "upuser:uppswd"); curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/7.21.7 (i386-pc-win32) libcurl/7.21.7 OpenSSL/0.9.8r zlib/1.2.5"); curl_easy_setopt(hnd, CURLOPT_SSH_KNOWNHOSTS, "C:\Documents and Settings\userI\Application Data/_ssh/known_hosts"); curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); curl_easy_setopt(hnd, CURLOPT_HTTPPROXYTUNNEL, 1L); curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); ret = curl_easy_perform(hnd); curl_easy_cleanup(hnd); /* Here is a list of options the curl code used that cannot get generated as source easily. You may select to either not use them or implement them yourself. CURLOPT_WRITEDATA set to a objectpointer CURLOPT_WRITEFUNCTION set to a functionpointer CURLOPT_READDATA set to a objectpointer CURLOPT_READFUNCTION set to a functionpointer CURLOPT_SEEKDATA set to a objectpointer CURLOPT_SEEKFUNCTION set to a functionpointer CURLOPT_ERRORBUFFER set to a objectpointer CURLOPT_STDERR set to a objectpointer CURLOPT_DEBUGFUNCTION set to a functionpointer CURLOPT_DEBUGDATA set to a objectpointer CURLOPT_SOCKOPTFUNCTION set to a functionpointer CURLOPT_SOCKOPTDATA set to a objectpointer */ return (int)ret; } /**** End of sample code ****/