Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 561) sorted by relevance

12345678910>>...23

/curl/docs/examples/
H A Dcrawler.c80 CURL *handle = curl_easy_init(); in make_handle() local
84 curl_easy_setopt(handle, CURLOPT_URL, url); in make_handle()
91 curl_easy_setopt(handle, CURLOPT_WRITEDATA, mem); in make_handle()
92 curl_easy_setopt(handle, CURLOPT_PRIVATE, mem); in make_handle()
96 curl_easy_setopt(handle, CURLOPT_TIMEOUT, 5L); in make_handle()
101 curl_easy_setopt(handle, CURLOPT_MAXREDIRS, 10L); in make_handle()
109 curl_easy_setopt(handle, CURLOPT_COOKIEFILE, ""); in make_handle()
110 curl_easy_setopt(handle, CURLOPT_FILETIME, 1L); in make_handle()
116 return handle; in make_handle()
199 CURL *handle = m->easy_handle; in main() local
[all …]
H A Dftp-wildcard.c47 CURL *handle; in main() local
58 handle = curl_easy_init(); in main()
59 if(!handle) { in main()
65 curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L); in main()
74 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_it); in main()
77 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data); in main()
78 curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data); in main()
84 curl_easy_setopt(handle, CURLOPT_URL, argv[1]); in main()
86 curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/*"); in main()
89 rc = curl_easy_perform(handle); in main()
[all …]
H A Dshared-connection-cache.c31 static void my_lock(CURL *handle, curl_lock_data data, in my_lock() argument
34 (void)handle; in my_lock()
41 static void my_unlock(CURL *handle, curl_lock_data data, void *useptr) in my_unlock() argument
43 (void)handle; in my_unlock()
/curl/tests/libtest/
H A Dlib575.c42 CURL *handle = NULL; in test() local
52 easy_init(handle); in test()
54 easy_setopt(handle, CURLOPT_URL, URL); in test()
56 easy_setopt(handle, CURLOPT_VERBOSE, 1L); in test()
58 res = curl_easy_perform(handle); in test()
62 res = curl_easy_perform(handle); in test()
66 duphandle = curl_easy_duphandle(handle); in test()
69 curl_easy_cleanup(handle); in test()
70 handle = duphandle; in test()
74 multi_add_handle(mhandle, handle); in test()
[all …]
H A Dlib576.c100 CURL *handle = NULL; in test() local
104 handle = curl_easy_init(); in test()
105 if(!handle) { in test()
110 test_setopt(handle, CURLOPT_URL, URL); in test()
111 test_setopt(handle, CURLOPT_WILDCARDMATCH, 1L); in test()
112 test_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, chunk_bgn); in test()
113 test_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, chunk_end); in test()
114 test_setopt(handle, CURLOPT_CHUNK_DATA, &chunk_data); in test()
116 res = curl_easy_perform(handle); in test()
119 if(handle) in test()
[all …]
H A Dlib659.c36 CURL *handle = NULL; in test() local
41 easy_init(handle); in test()
58 easy_setopt(handle, CURLOPT_CURLU, urlp); in test()
59 easy_setopt(handle, CURLOPT_VERBOSE, 1L); in test()
60 easy_setopt(handle, CURLOPT_PROXY, URL); in test()
62 res = curl_easy_perform(handle); in test()
73 curl_easy_cleanup(handle); in test()
H A Dlib658.c36 CURL *handle = NULL; in test() local
42 easy_init(handle); in test()
59 easy_setopt(handle, CURLOPT_URL, "http://www.example.com"); in test()
61 easy_setopt(handle, CURLOPT_CURLU, urlp); in test()
62 easy_setopt(handle, CURLOPT_VERBOSE, 1L); in test()
64 res = curl_easy_perform(handle); in test()
75 curl_easy_cleanup(handle); in test()
H A Dlib674.c36 CURL *handle = NULL; in test() local
43 easy_init(handle); in test()
62 easy_setopt(handle, CURLOPT_CURLU, urlp); in test()
63 easy_setopt(handle, CURLOPT_VERBOSE, 1L); in test()
65 res = curl_easy_perform(handle); in test()
73 handle2 = curl_easy_duphandle(handle); in test()
80 curl_easy_cleanup(handle); in test()
H A Dlib1550.c32 CURLM *handle; in test() local
40 handle = curl_multi_init(); in test()
43 curl_multi_setopt(handle, CURLMOPT_PIPELINING_SERVER_BL, bl_servers); in test()
44 curl_multi_setopt(handle, CURLMOPT_PIPELINING_SITE_BL, bl_sites); in test()
45 curl_multi_cleanup(handle); in test()
H A Dlib1501.c40 CURL *handle = NULL; in test() local
49 easy_init(handle); in test()
51 easy_setopt(handle, CURLOPT_URL, URL); in test()
52 easy_setopt(handle, CURLOPT_VERBOSE, 1L); in test()
56 multi_add_handle(mhandle, handle); in test()
109 curl_easy_cleanup(handle); in test()
H A Dlib1554.c39 static void test_lock(CURL *handle, curl_lock_data data, in test_lock() argument
42 (void)handle; in test_lock()
49 static void test_unlock(CURL *handle, curl_lock_data data, void *useptr) in test_unlock() argument
51 (void)handle; in test_unlock()
/curl/lib/vauth/
H A Dntlm.c69 fprintf(handle, "NTLMFLAG_NEGOTIATE_OEM "); in ntlm_print_flags()
71 fprintf(handle, "NTLMFLAG_REQUEST_TARGET "); in ntlm_print_flags()
73 fprintf(handle, "NTLMFLAG_UNKNOWN_3 "); in ntlm_print_flags()
85 fprintf(handle, "NTLMFLAG_UNKNOWN_10 "); in ntlm_print_flags()
113 fprintf(handle, "NTLMFLAG_UNKNOWN_24 "); in ntlm_print_flags()
115 fprintf(handle, "NTLMFLAG_UNKNOWN_25 "); in ntlm_print_flags()
117 fprintf(handle, "NTLMFLAG_UNKNOWN_26 "); in ntlm_print_flags()
119 fprintf(handle, "NTLMFLAG_UNKNOWN_27 "); in ntlm_print_flags()
121 fprintf(handle, "NTLMFLAG_UNKNOWN_28 "); in ntlm_print_flags()
127 fprintf(handle, "NTLMFLAG_NEGOTIATE_56 "); in ntlm_print_flags()
[all …]
/curl/docs/libcurl/
H A Dcurl_multi_add_handle.md20 curl_multi_add_handle - add an easy handle to a multi session
32 Adds the *easy handle* to the *multi_handle*.
35 use curl_easy_perform(3) on that handle. After having removed the easy
36 handle from the multi stack again, it is perfectly fine to use it with the
39 If the easy handle is not set to use a shared (CURLOPT_SHARE(3)) cache,
41 the multi handle when curl_multi_add_handle(3) is called.
44 connection cache owned by the multi handle. Removing and adding new easy
48 If you have CURLMOPT_TIMERFUNCTION(3) set in the multi handle (as you
54 The easy handle remains added to the multi handle until you remove it again
56 specific easy handle is completed.
[all …]
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
40 It is fine to remove a handle at any time during a transfer, just not from
43 Removing an easy handle from the multi handle before the corresponding
47 multi handle, ready to get reused for a future transfer using this multi
48 handle.
[all …]
H A Dcurl_easy_cleanup.md20 curl_easy_cleanup - free an easy handle
27 void curl_easy_cleanup(CURL *handle);
33 all resources previously associated with this easy handle.
35 This call closes all connections this handle has used and possibly has kept
36 open until now unless the easy handle was attached to a multi handle while
41 within curl_easy_cleanup(3) (if previously set for the handle using
46 Any use of the easy **handle** after this function has been called and have
49 To close an easy handle that has been used with the multi interface, make sure
50 to first call curl_multi_remove_handle(3) to remove it from the multi handle
53 Passing in a NULL pointer in *handle* makes this function return immediately
H A Dcurl_easy_duphandle.md19 curl_easy_duphandle - clone an easy handle
26 CURL *curl_easy_duphandle(CURL *handle);
31 This function returns a new curl handle, a duplicate, using all the options
32 previously set in the input curl *handle*. Both handles can subsequently be
35 Any options that the input handle has been told to point to (as opposed to
37 handle as well. You must therefore make sure to keep the data around until
40 The new handle does **not** inherit any state information, no connections, no
44 If the source handle has HSTS or alt-svc enabled, the duplicate gets data read
48 the input handle may not be in use when cloned.
74 If this function returns NULL, something went wrong and no valid handle was
H A Dcurl_easy_reset.md19 curl_easy_reset - reset all options of a libcurl session handle
26 void curl_easy_reset(CURL *handle);
31 Re-initializes all options previously set on a specified CURL handle to the
32 default values. This puts back the handle to the same state as it was in when
35 It does not change the following information kept in the handle: live
49 /* ... the handle is used and options are set ... */
H A Dcurl_url_cleanup.md20 curl_url_cleanup - free the URL handle
27 void curl_url_cleanup(CURLU *handle);
32 Frees all the resources associated with the given *CURLU* handle.
34 Passing in a NULL pointer in *handle* makes this function return
37 Any use of the **handle** after this function has been called and have
H A Dlibcurl-share.md44 You create a shared object with curl_share_init(3). It returns a handle
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
58 handle.
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
65 it, and call curl_share_cleanup(3) on the handle.
H A Dcurl_mime_init.md21 curl_mime_init - create a mime handle
33 curl_mime_init(3) creates a handle to a new empty mime structure.
35 attached to some easy handle using option CURLOPT_MIMEPOST(3) within
37 handle's part using curl_mime_subparts(3).
40 reporting. Since 7.87.0, it does not need to be the final target handle.
42 Using a mime handle is the recommended way to post an HTTP form, format and
77 A mime struct handle, or NULL upon failure.
H A Dcurl_mime_addpart.md40 mime structure and returns a handle to it. The returned part handle can
43 *mime* is the handle of the mime structure in which the new part must be
58 /* create a mime handle */
75 A mime part structure handle, or NULL upon failure.
/curl/tests/http/clients/
H A Dh2-pausing.c76 (void)handle; /* not used */ in debug_cb()
160 struct handle struct
173 struct handle *handle = (struct handle *) clientp; in cb() argument
182 if(!handle->resumed) { in cb()
183 ++handle->paused; in cb()
185 handle->idx, handle->paused, (long)realsize); in cb()
186 assert(handle->paused == 1); in cb()
189 if(handle->fail_write) { in cb()
190 ++handle->errored; in cb()
192 handle->idx, (long)realsize, handle->errored); in cb()
[all …]
/curl/docs/libcurl/opts/
H A DCURLOPT_SHARE.md17 CURLOPT_SHARE - share handle to use
24 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SHARE, CURLSH *share);
29 Pass a *share* handle as a parameter. The share handle must have been
31 makes this curl handle use the data from the shared handle instead of keeping
34 the locking methods in the share handle. See curl_share_setopt(3) for
37 If you add a share that is set to share cookies, your easy handle uses that
40 cookies), the easy handle gets its cookie engine disabled.
59 CURL *curl2 = curl_easy_init(); /* a second handle */
71 /* the second handle shares cookies from the first */
H A DCURLOPT_CURLU.md22 CURLOPT_CURLU - URL in URL handle format
29 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CURLU, CURLU *pointer);
34 Pass in a pointer to the *URL* handle to work with. The parameter should be a
41 libcurl uses this handle and its contents read-only and does not change its
42 contents. An application can update the contents of the URL handle after a
43 transfer is done and if the same handle is used in a subsequent request the
/curl/tests/server/
H A Dsockfilt.c158 HANDLE handle = NULL; in read_wincon() local
190 HANDLE handle = NULL; in write_wincon() local
463 handle = data->handle; in select_ws_wait_thread()
465 handles[1] = handle; in select_ws_wait_thread()
473 type = GetFileType(handle); in select_ws_wait_thread()
606 data->handle = handle; in select_ws_wait()
724 handle = select_ws_wait(handle, signal, abort); in select_ws()
725 if(handle) { in select_ws()
778 handle = select_ws_wait(handle, signal, abort); in select_ws()
779 if(handle) { in select_ws()
[all …]

Completed in 29 milliseconds

12345678910>>...23