Lines Matching refs:upload
48 struct WriteThis *upload = (struct WriteThis *)userp; in read_callback() local
54 if(upload->sizeleft) { in read_callback()
56 if(copylen > upload->sizeleft) in read_callback()
57 copylen = upload->sizeleft; in read_callback()
58 memcpy(ptr, upload->readptr, copylen); in read_callback()
59 upload->readptr += copylen; in read_callback()
60 upload->sizeleft -= copylen; in read_callback()
72 struct WriteThis upload; in main() local
74 upload.readptr = data; in main()
75 upload.sizeleft = strlen(data); in main()
103 curl_easy_setopt(curl, CURLOPT_READDATA, &upload); in main()
110 (curl_off_t)upload.sizeleft); in main()