Home
last modified time | relevance | path

Searched refs:curl (Results 1 – 25 of 1430) sorted by relevance

12345678910>>...58

/curl/tests/libtest/
H A Dlib661.c30 CURL *curl = NULL; in test() local
39 curl = curl_easy_init(); in test()
40 if(!curl) { in test()
66 curl_easy_cleanup(curl); in test()
67 curl = curl_easy_init(); in test()
68 if(!curl) { in test()
103 curl_easy_cleanup(curl); in test()
104 curl = curl_easy_init(); in test()
105 if(!curl) { in test()
131 if(!curl) { in test()
[all …]
H A Dlib598.c31 CURL *curl; in test() local
38 curl = curl_easy_init(); in test()
39 if(!curl) { in test()
45 test_setopt(curl, CURLOPT_URL, URL); in test()
46 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
52 res = curl_easy_perform(curl); in test()
58 curl_easy_reset(curl); in test()
60 test_setopt(curl, CURLOPT_URL, URL); in test()
61 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
64 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib1525.c51 CURL *curl = NULL; in test() local
61 curl = curl_easy_init(); in test()
62 if(!curl) { in test()
74 test_setopt(curl, CURLOPT_URL, URL); in test()
76 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
79 test_setopt(curl, CURLOPT_POST, 0L); in test()
80 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
81 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
83 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
89 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib536.c31 static void proxystat(CURL *curl) in proxystat() argument
43 CURL *curl; in test() local
51 curl = curl_easy_init(); in test()
52 if(!curl) { in test()
63 test_setopt(curl, CURLOPT_PROXY, URL); in test()
66 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
68 res = curl_easy_perform(curl); in test()
70 proxystat(curl); in test()
72 res = curl_easy_perform(curl); in test()
74 proxystat(curl); in test()
[all …]
H A Dlib572.c47 CURL *curl; in test() local
60 curl = curl_easy_init(); in test()
61 if(!curl) { in test()
70 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
72 test_setopt(curl, CURLOPT_URL, URL); in test()
86 res = curl_easy_perform(curl); in test()
116 res = curl_easy_perform(curl); in test()
134 res = curl_easy_perform(curl); in test()
152 res = curl_easy_perform(curl); in test()
169 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib2304.c94 static void websocket(CURL *curl) in websocket() argument
99 recv_any(curl); in websocket()
101 if(send_ping(curl, "foobar")) in websocket()
104 if(recv_pong(curl, "foobar")) { in websocket()
110 websocket_close(curl); in websocket()
115 CURL *curl; in test() local
120 curl = curl_easy_init(); in test()
121 if(curl) { in test()
128 res = curl_easy_perform(curl); in test()
131 websocket(curl); in test()
[all …]
H A Dlib3100.c30 CURL *curl; in test() local
37 curl = curl_easy_init(); in test()
38 if(!curl) { in test()
44 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
45 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
46 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
48 test_setopt(curl, CURLOPT_URL, URL); in test()
49 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, URL); in test()
52 test_setopt(curl, CURLOPT_USERNAME, "user"); in test()
56 res = curl_easy_perform(curl); in test()
[all …]
H A Dlibauthretry.c47 test_setopt(curl, CURLOPT_VERBOSE, 1L); in send_request()
48 test_setopt(curl, CURLOPT_HEADER, 1L); in send_request()
49 test_setopt(curl, CURLOPT_HTTPGET, 1L); in send_request()
53 res = curl_easy_perform(curl); in send_request()
88 CURL *curl = NULL; in test() local
106 curl = curl_easy_init(); in test()
107 if(!curl) { in test()
121 curl_easy_cleanup(curl); in test()
124 curl = curl_easy_init(); in test()
125 if(!curl) { in test()
[all …]
H A Dlib568.c47 CURL *curl; in test() local
60 curl = curl_easy_init(); in test()
61 if(!curl) { in test()
70 test_setopt(curl, CURLOPT_URL, URL); in test()
94 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
99 res = curl_easy_perform(curl); in test()
118 res = curl_easy_perform(curl); in test()
141 test_setopt(curl, CURLOPT_POSTFIELDS, in test()
144 res = curl_easy_perform(curl); in test()
164 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib3101.c30 CURL *curl; in test() local
37 curl = curl_easy_init(); in test()
38 if(!curl) { in test()
44 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
45 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
46 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
47 test_setopt(curl, CURLOPT_URL, URL); in test()
49 test_setopt(curl, CURLOPT_USERNAME, "user"); in test()
50 test_setopt(curl, CURLOPT_PASSWORD, "password"); in test()
53 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib544.c36 CURL *curl; in test() local
44 curl = curl_easy_init(); in test()
45 if(!curl) { in test()
52 test_setopt(curl, CURLOPT_URL, URL); in test()
58 test_setopt(curl, CURLOPT_COPYPOSTFIELDS, teststring); in test()
61 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */ in test()
68 handle2 = curl_easy_duphandle(curl); in test()
69 curl_easy_cleanup(curl); in test()
71 curl = handle2; in test()
75 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib1938.c31 CURL *curl; in test() local
42 curl = curl_easy_init(); in test()
43 if(!curl) { in test()
49 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
50 test_setopt(curl, CURLOPT_POST, 1L); in test()
53 test_setopt(curl, CURLOPT_HEADER, 0L); in test()
54 test_setopt(curl, CURLOPT_URL, URL); in test()
60 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
61 test_setopt(curl, CURLOPT_POSTFIELDS, data); in test()
64 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib1527.c50 CURL *curl = NULL; in test() local
60 curl = curl_easy_init(); in test()
61 if(!curl) { in test()
77 test_setopt(curl, CURLOPT_URL, URL); in test()
79 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
80 test_setopt(curl, CURLOPT_POST, 0L); in test()
81 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
82 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
84 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
91 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib514.c30 CURL *curl; in test() local
38 curl = curl_easy_init(); in test()
39 if(!curl) { in test()
46 test_setopt(curl, CURLOPT_URL, URL); in test()
57 test_setopt(curl, CURLOPT_POSTFIELDS, "moo"); in test()
58 test_setopt(curl, CURLOPT_POSTFIELDSIZE, 3L); in test()
59 test_setopt(curl, CURLOPT_POST, 1L); in test()
64 test_setopt(curl, CURLOPT_NOBODY, 1L); in test()
67 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */ in test()
72 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib567.c34 CURL *curl; in test() local
42 curl = curl_easy_init(); in test()
43 if(!curl) { in test()
50 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
51 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
52 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
54 test_setopt(curl, CURLOPT_URL, URL); in test()
55 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, URL); in test()
57 test_setopt(curl, CURLOPT_USERAGENT, "test567"); in test()
62 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib1937.c31 CURL *curl; in test() local
41 curl = curl_easy_init(); in test()
42 if(!curl) { in test()
48 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
49 test_setopt(curl, CURLOPT_POST, 1L); in test()
52 test_setopt(curl, CURLOPT_HEADER, 0L); in test()
53 test_setopt(curl, CURLOPT_URL, URL); in test()
57 test_setopt(curl, CURLOPT_CONNECT_TO, connect_to); in test()
59 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
62 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib1526.c49 CURL *curl = NULL; in test() local
59 curl = curl_easy_init(); in test()
60 if(!curl) { in test()
77 test_setopt(curl, CURLOPT_URL, URL); in test()
79 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
82 test_setopt(curl, CURLOPT_POST, 0L); in test()
83 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
84 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
86 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
92 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib570.c36 CURL *curl; in test() local
45 curl = curl_easy_init(); in test()
46 if(!curl) { in test()
53 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
54 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
56 test_setopt(curl, CURLOPT_URL, URL); in test()
69 res = curl_easy_perform(curl); in test()
77 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, in test()
90 res = curl_easy_perform(curl); in test()
105 res = curl_easy_perform(curl); in test()
[all …]
H A Dlib2301.c78 static void websocket(CURL *curl)
83 if(send_ping(curl, "foobar"))
85 if(recv_pong(curl, "foobar"))
89 websocket_close(curl);
124 CURL *curl; in test() local
129 curl = curl_easy_init(); in test()
130 if(curl) { in test()
138 curl_easy_setopt(curl, CURLOPT_WRITEDATA, curl); in test()
139 res = curl_easy_perform(curl); in test()
143 websocket(curl); in test()
[all …]
/curl/docs/examples/
H A Dwebsocket.c93 static void websocket(CURL *curl) in websocket() argument
97 recv_any(curl); in websocket()
98 if(ping(curl, "foobar")) in websocket()
100 if(recv_pong(curl, "foobar")) { in websocket()
105 websocket_close(curl); in websocket()
110 CURL *curl; in main() local
113 curl = curl_easy_init(); in main()
114 if(curl) { in main()
120 res = curl_easy_perform(curl); in main()
127 websocket(curl); in main()
[all …]
H A Dsimplessl.c52 CURL *curl; in main() local
80 curl = curl_easy_init(); in main()
81 if(curl) { in main()
84 curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile); in main()
108 curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "PEM"); in main()
111 curl_easy_setopt(curl, CURLOPT_SSLCERT, pCertFile); in main()
123 curl_easy_setopt(curl, CURLOPT_SSLKEY, pKeyName); in main()
126 curl_easy_setopt(curl, CURLOPT_CAINFO, pCACertFile); in main()
129 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L); in main()
132 res = curl_easy_perform(curl); in main()
[all …]
H A Dimap-tls.c42 CURL *curl; in main() local
45 curl = curl_easy_init(); in main()
46 if(curl) { in main()
48 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
49 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
52 curl_easy_setopt(curl, CURLOPT_URL, in main()
60 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
74 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
79 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
82 res = curl_easy_perform(curl); in main()
[all …]
H A Dpop3-tls.c42 CURL *curl; in main() local
45 curl = curl_easy_init(); in main()
46 if(curl) { in main()
48 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
49 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
52 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); in main()
59 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
73 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
78 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
81 res = curl_easy_perform(curl); in main()
[all …]
H A Dprogressfunc.c37 CURL *curl; member
46 CURL *curl = myp->curl; in xferinfo() local
49 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME_T, &curtime); in xferinfo()
72 CURL *curl; in main() local
76 curl = curl_easy_init(); in main()
77 if(curl) { in main()
79 prog.curl = curl; in main()
85 curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &prog); in main()
87 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L); in main()
88 res = curl_easy_perform(curl); in main()
[all …]
H A Dimap-ssl.c42 CURL *curl; in main() local
45 curl = curl_easy_init(); in main()
46 if(curl) { in main()
48 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
49 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
53 curl_easy_setopt(curl, CURLOPT_URL, in main()
65 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
73 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
79 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
82 res = curl_easy_perform(curl); in main()
[all …]

Completed in 28 milliseconds

12345678910>>...58