Lines Matching refs:upload
50 struct WriteThis *upload = (struct WriteThis *)userp; in read_callback() local
56 if(upload->sizeleft) { in read_callback()
58 if(copylen > upload->sizeleft) in read_callback()
59 copylen = upload->sizeleft; in read_callback()
60 memcpy(ptr, upload->readptr, copylen); in read_callback()
61 upload->readptr += copylen; in read_callback()
62 upload->sizeleft -= copylen; in read_callback()
74 struct WriteThis upload; in main() local
76 upload.readptr = data; in main()
77 upload.sizeleft = strlen(data); in main()
105 curl_easy_setopt(curl, CURLOPT_READDATA, &upload); in main()
112 (curl_off_t)upload.sizeleft); in main()