/external/curl/tests/libtest/ |
lib1514.c | 40 struct WriteThis *pooh = (struct WriteThis *)userp; local 45 if(pooh->sizeleft) { 46 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ 47 pooh->readptr++; /* advance pointer */ 48 pooh->sizeleft--; /* less data left */ 60 struct WriteThis pooh = { data, sizeof(data)-1 }; local 70 easy_setopt(curl, CURLOPT_READDATA, &pooh);
|
lib508.c | 35 struct WriteThis *pooh = (struct WriteThis *)userp; local 40 if(pooh->sizeleft) { 41 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ 42 pooh->readptr++; /* advance pointer */ 43 pooh->sizeleft--; /* less data left */ 55 struct WriteThis pooh; local 57 pooh.readptr = data; 58 pooh.sizeleft = strlen(data); 83 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); 89 test_setopt(curl, CURLOPT_READDATA, &pooh); [all...] |
lib554.c | 51 struct WriteThis *pooh = (struct WriteThis *)userp; 56 if(pooh->sizeleft) { 57 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ 58 pooh->readptr++; /* advance pointer */ 59 pooh->sizeleft--; /* less data left */ 75 struct WriteThis pooh; local 83 pooh.readptr = data; 84 pooh.sizeleft = strlen(data); 90 CURLFORM_STREAM, &pooh, 91 CURLFORM_CONTENTSLENGTH, (long)pooh.sizeleft [all...] |
lib510.c | 41 struct WriteThis *pooh = (struct WriteThis *)userp; local 47 data = post[pooh->counter]; 52 pooh->counter++; /* advance pointer */ 63 struct WriteThis pooh; local 64 pooh.counter = 0; 100 test_setopt(curl, CURLOPT_READDATA, &pooh);
|
lib579.c | 70 struct WriteThis *pooh = (struct WriteThis *)userp; local 76 data = post[pooh->counter]; 81 pooh->counter++; /* advance pointer */ 92 struct WriteThis pooh; local 93 pooh.counter = 0; 129 test_setopt(curl, CURLOPT_READDATA, &pooh);
|
/external/curl/docs/examples/ |
post-callback.c | 38 struct WriteThis *pooh = (struct WriteThis *)userp; local 43 if(pooh->sizeleft) { 44 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ 45 pooh->readptr++; /* advance pointer */ 46 pooh->sizeleft--; /* less data left */ 58 struct WriteThis pooh; local 60 pooh.readptr = data; 61 pooh.sizeleft = (long)strlen(data); 85 curl_easy_setopt(curl, CURLOPT_READDATA, &pooh); 109 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft) [all...] |