19 int main(
int argc,
char *argv[])
27 struct HttpPost *formpost=
NULL;
28 struct HttpPost *lastptr=
NULL;
30 char buf[] =
"Expect:";
35 CURLFORM_COPYNAME,
"sendfile",
36 CURLFORM_FILE,
"postit2.c",
42 CURLFORM_COPYNAME,
"filename",
43 CURLFORM_COPYCONTENTS,
"postit2.c",
50 CURLFORM_COPYNAME,
"submit",
51 CURLFORM_COPYCONTENTS,
"send",
60 if(curl && multi_handle) {
65 "http://www.fillinyoururl.com/upload.cgi");
76 while(still_running) {
96 rc =
select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
103 printf(
"timeout!\n");
106 printf(
"perform!\n");
109 printf(
"running: %d!\n", still_running);
CURLMcode curl_multi_fdset(CURLM *multi_handle, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *exc_fd_set, int *max_fd)
CURLFORMcode curl_formadd(struct curl_httppost **httppost, struct curl_httppost **last_post,...)
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...)
CURLM * curl_multi_init(void)
CURLMcode curl_multi_cleanup(CURLM *multi_handle)
int main(int argc, char *argv[])
void curl_formfree(struct curl_httppost *form)
CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
struct curl_slist * curl_slist_append(struct curl_slist *, const char *)
void curl_slist_free_all(struct curl_slist *)
CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *curl_handle)
void curl_easy_cleanup(CURL *curl)
CURL * curl_easy_init(void)