mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
made the test-program in the bottom compile/build, remember to link with
strequal.o as well!
This commit is contained in:
parent
268867311e
commit
b1cd033c27
@ -634,11 +634,16 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
form=Curl_getFormData(httppost, &size);
|
form=Curl_getFormData(httppost, &size);
|
||||||
|
|
||||||
FormInit(&formread, form);
|
Curl_FormInit(&formread, form);
|
||||||
|
|
||||||
while(nread = FormReader(buffer, 1, sizeof(buffer), (FILE *)&formread)) {
|
do {
|
||||||
|
nread = Curl_FormReader(buffer, 1, sizeof(buffer),
|
||||||
|
(FILE *)&formread);
|
||||||
|
|
||||||
|
if(-1 == nread)
|
||||||
|
break;
|
||||||
fwrite(buffer, nread, 1, stderr);
|
fwrite(buffer, nread, 1, stderr);
|
||||||
}
|
} while(1);
|
||||||
|
|
||||||
fprintf(stderr, "size: %d\n", size);
|
fprintf(stderr, "size: %d\n", size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user