46
65
/* we assume that sending always work */
50
69
/* busy-read like crazy */
51
70
res = curl_easy_recv(curl, buf, 1024, &iolen);
54
77
/* send received stuff to stdout */
55
78
write(STDOUT_FILENO, buf, iolen);
59
81
} while(((res == CURLE_OK) || (res == CURLE_AGAIN)) && (total < 129));