/third_party/ejdb/src/jbr/tests/ |
D | jbr_test1.c | 63 CURLcode cc = curl_easy_setopt(curl, CURLOPT_URL, url); in jbr_test1_1() 75 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); in jbr_test1_1() 77 curl_easy_setopt(curl, CURLOPT_URL, url); in jbr_test1_1() 78 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in jbr_test1_1() 79 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "{\"foo\":\"bar\"}"); in jbr_test1_1() 80 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_write_xstr); in jbr_test1_1() 81 curl_easy_setopt(curl, CURLOPT_WRITEDATA, xstr); in jbr_test1_1() 95 curl_easy_setopt(curl, CURLOPT_URL, url); in jbr_test1_1() 96 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_write_xstr); in jbr_test1_1() 97 curl_easy_setopt(curl, CURLOPT_WRITEDATA, xstr); in jbr_test1_1() [all …]
|
/third_party/skia/third_party/externals/microhttpd/src/testcurl/ |
D | test_put.c | 140 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world"); in testInternalPut() 141 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPut() 142 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut() 143 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); in testInternalPut() 144 curl_easy_setopt (c, CURLOPT_READDATA, &pos); in testInternalPut() 145 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); in testInternalPut() 146 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); in testInternalPut() 147 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPut() 148 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalPut() 150 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPut() [all …]
|
D | test_large_put.c | 163 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world"); in testInternalPut() 164 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPut() 165 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut() 166 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); in testInternalPut() 167 curl_easy_setopt (c, CURLOPT_READDATA, &pos); in testInternalPut() 168 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); in testInternalPut() 169 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); in testInternalPut() 170 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPut() 171 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalPut() 173 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPut() [all …]
|
D | test_put_chunked.c | 150 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11080/hello_world"); in testInternalPut() 151 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPut() 152 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut() 153 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); in testInternalPut() 154 curl_easy_setopt (c, CURLOPT_READDATA, &pos); in testInternalPut() 155 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); in testInternalPut() 160 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPut() 161 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalPut() 162 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPut() 163 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testInternalPut() [all …]
|
D | test_post.c | 180 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world"); in testInternalPost() 181 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPost() 182 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost() 183 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); in testInternalPost() 184 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); in testInternalPost() 185 curl_easy_setopt (c, CURLOPT_POST, 1L); in testInternalPost() 186 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPost() 187 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalPost() 189 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPost() 191 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalPost() [all …]
|
D | test_post_loop.c | 134 curl_easy_setopt (c, CURLOPT_URL, url); in testInternalPost() 135 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPost() 136 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost() 137 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); in testInternalPost() 138 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); in testInternalPost() 139 curl_easy_setopt (c, CURLOPT_POST, 1L); in testInternalPost() 140 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPost() 141 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalPost() 143 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPost() 145 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalPost() [all …]
|
D | test_get.c | 127 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11080/hello_world"); in testInternalGet() 128 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalGet() 129 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet() 130 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalGet() 131 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalGet() 132 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testInternalGet() 134 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalGet() 136 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalGet() 140 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalGet() 177 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/hello_world"); in testMultithreadedGet() [all …]
|
D | test_get_sendfile.c | 133 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11080/"); in testInternalGet() 134 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalGet() 135 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet() 136 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalGet() 137 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalGet() 138 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testInternalGet() 140 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalGet() 142 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalGet() 146 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalGet() 182 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/"); in testMultithreadedGet() [all …]
|
D | test_timeout.c | 184 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world"); in testWithoutTimeout() 185 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testWithoutTimeout() 186 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testWithoutTimeout() 187 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); in testWithoutTimeout() 188 curl_easy_setopt (c, CURLOPT_READDATA, &pos); in testWithoutTimeout() 189 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); in testWithoutTimeout() 190 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); in testWithoutTimeout() 191 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testWithoutTimeout() 192 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testWithoutTimeout() 194 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testWithoutTimeout() [all …]
|
D | test_postform.c | 193 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world"); in testInternalPost() 194 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPost() 195 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost() 197 curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); in testInternalPost() 198 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPost() 199 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalPost() 201 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPost() 203 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalPost() 204 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testInternalPost() 208 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalPost() [all …]
|
D | test_get_chunked.c | 172 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world"); in testInternalGet() 173 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalGet() 174 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet() 175 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalGet() 176 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalGet() 177 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testInternalGet() 178 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalGet() 182 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalGet() 214 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/hello_world"); in testMultithreadedGet() 215 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testMultithreadedGet() [all …]
|
D | perf_get.c | 204 curl_easy_setopt (c, CURLOPT_URL, url); in testInternalGet() 205 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalGet() 206 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet() 207 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalGet() 208 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalGet() 209 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testInternalGet() 211 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalGet() 213 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalGet() 217 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalGet() 264 curl_easy_setopt (c, CURLOPT_URL, url); in testMultithreadedGet() [all …]
|
D | test_process_headers.c | 165 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:21080/hello_world"); in testInternalGet() 166 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalGet() 167 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet() 168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalGet() 169 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testInternalGet() 170 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testInternalGet() 172 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalGet() 174 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalGet() 178 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalGet() 214 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:21080/hello_world"); in testMultithreadedGet() [all …]
|
D | test_long_header.c | 124 curl_easy_setopt (c, CURLOPT_URL, url); in testLongUrlGet() 125 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testLongUrlGet() 126 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testLongUrlGet() 127 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testLongUrlGet() 128 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); in testLongUrlGet() 129 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); in testLongUrlGet() 131 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testLongUrlGet() 133 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testLongUrlGet() 137 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testLongUrlGet() 198 curl_easy_setopt (c, CURLOPT_HTTPHEADER, header); in testLongHeaderGet() [all …]
|
/third_party/skia/third_party/externals/microhttpd/src/testzzuf/ |
D | test_put.c | 141 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testInternalPut() 142 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPut() 143 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut() 144 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); in testInternalPut() 145 curl_easy_setopt (c, CURLOPT_READDATA, &pos); in testInternalPut() 146 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); in testInternalPut() 147 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); in testInternalPut() 148 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPut() 149 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testInternalPut() 151 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPut() [all …]
|
D | test_put_large.c | 156 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testInternalPut() 157 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPut() 158 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut() 159 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); in testInternalPut() 160 curl_easy_setopt (c, CURLOPT_READDATA, &pos); in testInternalPut() 161 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); in testInternalPut() 162 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); in testInternalPut() 163 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPut() 164 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testInternalPut() 166 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPut() [all …]
|
D | test_post.c | 172 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testInternalPost() 173 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPost() 174 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost() 175 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); in testInternalPost() 176 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); in testInternalPost() 177 curl_easy_setopt (c, CURLOPT_POST, 1L); in testInternalPost() 178 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPost() 179 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testInternalPost() 181 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPost() 183 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalPost() [all …]
|
D | test_put_chunked.c | 147 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11080/hello_world"); in testInternalPut() 148 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPut() 149 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut() 150 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); in testInternalPut() 151 curl_easy_setopt (c, CURLOPT_READDATA, &pos); in testInternalPut() 152 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); in testInternalPut() 157 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPut() 158 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testInternalPut() 159 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPut() 160 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); in testInternalPut() [all …]
|
D | test_get.c | 116 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testInternalGet() 117 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalGet() 118 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet() 119 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalGet() 120 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testInternalGet() 121 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); in testInternalGet() 123 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalGet() 125 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalGet() 129 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalGet() 160 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testMultithreadedGet() [all …]
|
D | test_long_header.c | 128 curl_easy_setopt (c, CURLOPT_URL, url); in testLongUrlGet() 129 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testLongUrlGet() 130 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testLongUrlGet() 131 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testLongUrlGet() 132 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testLongUrlGet() 133 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); in testLongUrlGet() 135 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testLongUrlGet() 137 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testLongUrlGet() 141 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testLongUrlGet() 190 curl_easy_setopt (c, CURLOPT_HTTPHEADER, header); in testLongHeaderGet() [all …]
|
D | test_post_form.c | 190 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testInternalPost() 191 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalPost() 192 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost() 194 curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); in testInternalPost() 195 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalPost() 196 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testInternalPost() 198 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalPost() 200 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in testInternalPost() 201 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); in testInternalPost() 205 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalPost() [all …]
|
D | test_get_chunked.c | 142 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testInternalGet() 143 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testInternalGet() 144 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet() 145 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); in testInternalGet() 146 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); in testInternalGet() 147 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); in testInternalGet() 148 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in testInternalGet() 152 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); in testInternalGet() 183 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); in testMultithreadedGet() 184 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); in testMultithreadedGet() [all …]
|
/third_party/curl/docs/examples/ |
D | ftpuploadresume.c | 82 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in upload() 84 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in upload() 87 curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout); in upload() 89 curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc); in upload() 90 curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, &uploaded_len); in upload() 92 curl_easy_setopt(curlhandle, CURLOPT_WRITEFUNCTION, discardfunc); in upload() 94 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in upload() 95 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in upload() 98 curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); in upload() 99 curl_easy_setopt(curlhandle, CURLOPT_FTP_CREATE_MISSING_DIRS, 1L); in upload() [all …]
|
D | cacertinmem.c | 128 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main() 129 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main() 130 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main() 131 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main() 132 curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, writefunction); in main() 133 curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main() 134 curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, writefunction); in main() 135 curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main() 136 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main() 137 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L); in main() [all …]
|
D | usercertinmem.c | 182 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main() 183 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main() 184 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main() 185 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main() 186 curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, writefunction); in main() 187 curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main() 188 curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, writefunction); in main() 189 curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main() 190 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main() 195 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 0L); in main() [all …]
|