Home
last modified time | relevance | path

Searched refs:easy (Results 26 – 50 of 160) sorted by relevance

1234567

/curl/tests/http/clients/
H A Dtls-session-reuse.c145 CURL *easy; in add_transfer() local
148 easy = curl_easy_init(); in add_transfer()
149 if(!easy) { in add_transfer()
153 curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L); in add_transfer()
155 curl_easy_setopt(easy, CURLOPT_URL, url); in add_transfer()
156 curl_easy_setopt(easy, CURLOPT_SHARE, share); in add_transfer()
157 curl_easy_setopt(easy, CURLOPT_NOSIGNAL, 1L); in add_transfer()
158 curl_easy_setopt(easy, CURLOPT_AUTOREFERER, 1L); in add_transfer()
159 curl_easy_setopt(easy, CURLOPT_FAILONERROR, 1L); in add_transfer()
163 curl_easy_setopt(easy, CURLOPT_HTTPGET, 1L); in add_transfer()
[all …]
H A Dhx-upload.c147 CURL *easy; member
171 if(easy == transfers[i].easy) in get_transfer_for_easy()
425 if(!easy) { in main()
431 t->easy = easy; in main()
440 t->easy = NULL; in main()
441 curl_easy_reset(easy); in main()
443 curl_easy_cleanup(easy); in main()
453 if(!t->easy || setup(t->easy, url, t, http_version)) { in main()
526 if(!t->easy || setup(t->easy, url, t, http_version)) { in main()
554 if(t->easy) { in main()
[all …]
H A Dhx-download.c147 CURL *easy; member
168 if(easy == transfers[i].easy) in get_transfer_for_easy()
373 t->easy = curl_easy_init(); in main()
374 if(!t->easy || setup(t->easy, url, t, http_version)) { in main()
378 curl_multi_add_handle(multi_handle, t->easy); in main()
420 if(!t->done && t->paused && t->easy) { in main()
446 t->easy = curl_easy_init(); in main()
447 if(!t->easy || setup(t->easy, url, t, http_version)) { in main()
472 if(t->easy) { in main()
473 curl_easy_cleanup(t->easy); in main()
[all …]
H A Dh2-serverpush.c155 CURL *easy, in server_push_callback() argument
181 curl_easy_setopt(easy, CURLOPT_WRITEDATA, out); in server_push_callback()
209 CURL *easy; in main() local
226 easy = curl_easy_init(); in main()
227 if(setup(easy, url)) { in main()
232 curl_multi_add_handle(multi_handle, easy); in main()
/curl/tests/libtest/
H A Dlib1911.c39 CURL *easy; in test() local
44 easy = curl_easy_init(); in test()
45 if(!easy) { in test()
79 result = curl_easy_setopt(easy, o->id, testbuf); in test()
95 curl_easy_cleanup(easy); in test()
H A Dlib1531.c38 CURL *easy; in test() local
50 easy = curl_easy_init(); in test()
56 curl_multi_add_handle(multi_handle, easy); in test()
59 curl_easy_setopt(easy, CURLOPT_URL, URL); in test()
60 curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE, in test()
62 curl_easy_setopt(easy, CURLOPT_POSTFIELDS, testData); in test()
156 curl_easy_cleanup(easy); in test()
H A Dlib1915.c54 static CURLSTScode hstsread(CURL *easy, struct curl_hstsentry *e, in hstsread() argument
60 (void)easy; in hstsread()
76 static CURLSTScode hstsreadfail(CURL *easy, struct curl_hstsentry *e, in hstsreadfail() argument
79 (void)easy; in hstsreadfail()
86 static CURLSTScode hstswrite(CURL *easy, struct curl_hstsentry *e, in hstswrite() argument
89 (void)easy; in hstswrite()
H A Dlib1565.c48 CURL *easy = NULL; in run_thread() local
57 easy_init(easy); in run_thread()
59 easy_setopt(easy, CURLOPT_URL, url); in run_thread()
60 easy_setopt(easy, CURLOPT_VERBOSE, 0L); in run_thread()
69 pending_handles[pending_num] = easy; in run_thread()
71 easy = NULL; in run_thread()
80 curl_easy_cleanup(easy); in run_thread()
H A Dlib1485.c31 CURL *easy; member
52 result = curl_easy_getinfo(st->easy, CURLINFO_RESPONSE_CODE, &httpcode); in header_callback()
62 result = curl_easy_getinfo(st->easy, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, in header_callback()
102 st.easy = curls; /* to allow callbacks access */ in test()
/curl/tests/unit/
H A Dunit1600.c29 static CURL *easy; variable
36 easy = curl_easy_init(); in unit_setup()
37 if(!easy) { in unit_setup()
46 curl_easy_cleanup(easy); in unit_stop()
H A Dunit1607.c114 struct Curl_easy *easy = NULL; variable
124 easy = curl_easy_init();
125 if(!easy)
131 curl_multi_add_handle(multi, easy);
136 curl_easy_setopt(easy, CURLOPT_RESOLVE, list);
138 Curl_loadhostpairs(easy);
143 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
218 curl_easy_cleanup(easy);
219 easy = NULL;
231 curl_easy_cleanup(easy);
H A Dunit1660.c127 CURL *easy;
133 easy = curl_easy_init();
134 if(!easy) {
137 abort_unless(easy, "curl_easy_init()");
140 Curl_hsts_loadfile(easy, h, arg);
174 (void)Curl_hsts_save(easy, h, savename);
176 curl_easy_cleanup(easy);
H A Dunit2600.c54 static CURL *easy; variable
61 easy = curl_easy_init(); in unit_setup()
62 if(!easy) { in unit_setup()
67 curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L); in unit_setup()
73 curl_easy_cleanup(easy); in unit_stop()
319 curl_easy_setopt(easy, CURLOPT_RESOLVE, list); in test_connect()
321 curl_easy_setopt(easy, CURLOPT_CONNECTTIMEOUT_MS, in test_connect()
323 curl_easy_setopt(easy, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, in test_connect()
326 curl_easy_setopt(easy, CURLOPT_URL, tc->url); in test_connect()
332 tr.result = curl_easy_perform(easy); in test_connect()
[all …]
/curl/docs/examples/
H A Dephiperfifo.c96 CURL *easy; member
107 CURL *easy; member
181 CURL *easy; in check_multi_info() local
187 easy = msg->easy_handle; in check_multi_info()
192 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
194 curl_easy_cleanup(easy); in check_multi_info()
283 f->easy = e; in setsock()
300 setsock(fdp, s, easy, action, g); in addsock()
365 conn->easy = curl_easy_init(); in new_conn()
366 if(!conn->easy) { in new_conn()
[all …]
H A Dhttp2-pushinmemory.c93 CURL *easy, in server_push_callback() argument
109 curl_easy_setopt(easy, CURLOPT_WRITEDATA, &files[pushindex]); in server_push_callback()
126 CURL *easy; in main() local
136 easy = curl_easy_init(); in main()
139 setup(easy); in main()
142 curl_multi_add_handle(multi, easy); in main()
H A Dhsts-preload.c49 static CURLSTScode hstsread(CURL *easy, struct curl_hstsentry *e, in hstsread() argument
55 (void)easy; in hstsread()
70 static CURLSTScode hstswrite(CURL *easy, struct curl_hstsentry *e, in hstswrite() argument
73 (void)easy; in hstswrite()
/curl/docs/libcurl/
H A Dcurl_multi_remove_handle.md18 curl_multi_remove_handle - remove an easy handle from a multi session
31 specified easy handle be removed from this multi handle's control.
33 When the easy handle has been removed from a multi stack, it is again
34 perfectly legal to invoke curl_easy_perform(3) on this easy handle.
36 Removing an easy handle while being in use is perfectly legal and effectively
37 halts the transfer in progress involving that easy handle. All other easy
43 Removing an easy handle from the multi handle before the corresponding
60 /* when an easy handle has completed, remove it */
H A Dlibcurl-easy.md4 Title: libcurl-easy
21 libcurl-easy - easy interface overview
25 When using libcurl's "easy" interface you init your session and get a handle
26 (often referred to as an "easy handle"), which you use as input to the easy
42 single easy handle, you can call curl_easy_reset(3) and you can also make a
43 clone of an easy handle (with all its set options) using
54 easy handle.
H A Dcurl_mime_init.md35 attached to some easy handle using option CURLOPT_MIMEPOST(3) within
52 CURL *easy = curl_easy_init();
57 mime = curl_mime_init(easy);
63 curl_easy_setopt(easy, CURLOPT_MIMEPOST, mime);
64 curl_easy_setopt(easy, CURLOPT_URL, "https://example.com");
65 curl_easy_perform(easy);
68 curl_easy_cleanup(easy);
H A Dlibcurl-share.md11 - libcurl-easy (3)
37 You can have multiple easy handles share data between them. Have them update
55 Then, you make an easy handle to use this share, you set the
57 share handle. You can make any number of easy handles share the same share
60 To make an easy handle stop using that particular share, you set
61 CURLOPT_SHARE(3) to NULL for that easy handle. To make a handle stop
64 When you are done using the share, make sure that no easy handle is still using
H A Dlibcurl-multi.md9 - libcurl-easy (3)
25 tutorial to programming with libcurl and the libcurl-easy(3) man page
26 for an overview of the libcurl easy interface.
54 transfers in parallel. Each single transfer is built up around an easy
56 options for each easy handle using curl_easy_setopt(3).
64 curl_easy_perform(3) like when using the easy interface for transfers,
65 you should add the easy handle to the multi handle with
66 curl_multi_add_handle(3). You can add more easy handles to a multi
71 handle, you can again use other easy interface functions like
106 which easy handle the information regards.
[all …]
H A Dcurl_easy_init.md21 curl_easy_init - create an easy handle
33 This function allocates and returns a CURL easy handle. Such a handle is used
34 as input to other functions in the easy interface. This call must have a
37 The easy handle is used to hold and control a single network transfer. It is
38 encouraged to reuse easy handles for repeated transfers.
40 An alternative way to get a new easy handle is to duplicate an already
H A Dcurl_mime_headers.md54 CURL *easy = curl_easy_init();
60 mime = curl_mime_init(easy);
73 curl_easy_setopt(easy, CURLOPT_MIMEPOST, mime);
74 curl_easy_setopt(easy, CURLOPT_URL, "https://example.com");
75 curl_easy_perform(easy);
H A Dcurl_multi_cleanup.md32 whole multi stack. It does not free or touch any individual easy handles in
36 1 - curl_multi_remove_handle(3) before any easy handles are cleaned up
38 2 - curl_easy_cleanup(3) can now be called independently since the easy
41 3 - curl_multi_cleanup(3) should be called when all easy handles are
64 /* remove all easy handles, then: */
/curl/docs/libcurl/opts/
H A DCURLSHOPT_SHARE.md40 Cookie data is shared across the easy handles using this shared object. Note
41 that this does not activate an easy handle's cookie handling. You can do that
48 Cached DNS hosts are shared across the easy handles using this shared
49 object. Note that when you use the multi interface, all easy handles added to
54 SSL session IDs are shared across the easy handles using this shared
56 the same server. Note SSL session IDs are reused within the same easy handle
64 Put the connection cache in the share object and make all easy handles using
71 same multi or easy handle. libcurl does not support doing multiplexed streams
77 Note that when you use the multi interface, all easy handles added to the same
83 easy handle bound to the later. Since the Public Suffix List is periodically
[all …]

Completed in 35 milliseconds

1234567