Searched refs:curl_easy_setopt (Results 26 - 50 of 109) sorted by relevance

12345

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/docs/examples/
H A Dpop3-retr.c39 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
40 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
43 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
H A Dsimplepost.c35 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
36 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
40 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
H A Dpersistant.c35 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
36 curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
39 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
50 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
H A Dsmtp-ssl.c91 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
92 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
96 curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net");
107 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
115 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
124 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
131 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
136 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
137 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
138 curl_easy_setopt(cur
[all...]
H A Dpost-callback.c76 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/index.cgi");
79 curl_easy_setopt(curl, CURLOPT_POST, 1L);
82 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
85 curl_easy_setopt(curl, CURLOPT_READDATA, &pooh);
88 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
102 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
109 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft);
125 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
H A Dsimple.c32 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
34 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
H A Dusercertinmem.c180 rv = curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L);
181 rv = curl_easy_setopt(ch,CURLOPT_HEADER, 0L);
182 rv = curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L);
183 rv = curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L);
184 rv = curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
185 rv = curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
186 rv = curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
187 rv = curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr);
188 rv = curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
193 rv = curl_easy_setopt(c
[all...]
H A Dfileupload.c50 curl_easy_setopt(curl, CURLOPT_URL,
54 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
57 curl_easy_setopt(curl, CURLOPT_READDATA, fd);
60 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
64 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
H A Dsepheaders.c48 curl_easy_setopt(curl_handle, CURLOPT_URL, "http://example.com");
51 curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L);
54 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
69 curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, headerfile);
72 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, bodyfile);
H A Durl2file.c51 curl_easy_setopt(curl_handle, CURLOPT_URL, argv[1]);
54 curl_easy_setopt(curl_handle, CURLOPT_VERBOSE, 1L);
57 curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L);
60 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
68 curl_easy_setopt(curl_handle, CURLOPT_FILE, pagefile);
H A Dhttpcustomheader.c38 curl_easy_setopt(curl, CURLOPT_URL, "localhost");
39 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
47 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
H A Dsmtp-expn.c43 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
47 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
50 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXPN");
H A Dftpget.c67 curl_easy_setopt(curl, CURLOPT_URL,
70 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
72 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
75 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
H A Dftpgetresp.c56 curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/");
57 curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile);
60 curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
61 curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile);
H A Dftp-wildcard.c61 curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
64 curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_comming);
67 curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
70 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_it);
73 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data);
74 curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data);
76 /* curl_easy_setopt(handle, CURLOPT_VERBOSE, 1L); */
80 curl_easy_setopt(handle, CURLOPT_URL, argv[1]);
82 curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/*");
H A Dhttp-post.c39 curl_easy_setopt(curl, CURLOPT_URL, "http://postit.example.com/moo.cgi");
41 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "name=daniel&project=curl");
H A Dresolve.c40 curl_easy_setopt(curl, CURLOPT_RESOLVE, host);
41 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
H A Dsmtp-vrfy.c46 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
50 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
H A Dcertinfo.c42 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
44 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
46 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
47 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
49 curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
50 curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);
H A Dhttpput.c86 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
89 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
92 curl_easy_setopt(curl, CURLOPT_PUT, 1L);
96 curl_easy_setopt(curl, CURLOPT_URL, url);
99 curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
103 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
H A Dimap-append.c87 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
88 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
93 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/100");
98 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
99 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
100 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
H A Dpostinmemory.c66 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.org/");
69 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
72 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
76 curl_easy_setopt(curl, CURLOPT_USERAGENT, "libcurl-agent/1.0");
78 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
82 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
H A Dprogressfunc.c86 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
88 curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, older_progress);
90 curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &prog);
97 curl_easy_setopt() will fail in run-time trying to set the new
103 curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xferinfo);
106 curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &prog);
109 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
H A Dsmtp-mail.c90 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
98 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
105 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
110 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
111 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
112 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/tests/libtest/
H A Dlib512.c42 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
43 curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
48 code = curl_easy_setopt(curl2, CURLOPT_URL, URL);

Completed in 83 milliseconds

12345