Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 200) sorted by relevance

12345678

/curl/tests/data/
H A Dtest100517r\n250-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n250-AAAAAAAAAAAAAA…
H A Dtest106218r\n250-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n250-AAAAAAAAAAAAAA…
H A Dtest100618r\n250-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n250-AAAAAAAAAAAAAA…
H A Dtest98313 …TH 500 unknown command\r\n500 unknown command\r\n331 give password\r\n230 Authenticated\r\n257 "/"…
/curl/tests/http/testenv/mod_curltest/
H A Dmod_curltest.c197 if(r->method_number != M_GET && r->method_number != M_POST) { in curltest_echo_handler()
202 if(r->args) { in curltest_echo_handler()
205 args = apr_cstr_split(r->args, "&", 1, r->pool); in curltest_echo_handler()
242 apr_ltoa(r->pool, (long)r->clength)); in curltest_echo_handler()
299 if(r->trailers_in && !apr_is_empty_table(r->trailers_in)) { in curltest_echo_handler()
350 if(r->args) { in curltest_tweak_handler()
351 args = apr_cstr_split(r->args, "&", 1, r->pool); in curltest_tweak_handler()
447 apr_ltoa(r->pool, (long)r->clength)); in curltest_tweak_handler()
552 if(r->args) { in curltest_put_handler()
553 args = apr_cstr_split(r->args, "&", 1, r->pool); in curltest_put_handler()
[all …]
/curl/tests/http/
H A Dtest_01_basic.py48 r = curl.http_get(url=url)
49 r.check_response(http_status=200)
50 assert r.json['server'] == env.domain1
57 r = curl.http_get(url=url)
58 r.check_response(http_status=200)
59 assert r.json['server'] == env.domain1
68 assert r.json['server'] == env.domain1
77 assert r.json['server'] == env.domain2
86 assert r.json['server'] == env.domain1
125 r.check_exit_code(0)
[all …]
H A Dtest_17_ssl_use.py91 assert r.total_connects == count, r.dump_logs()
129 if r.exit_code == 0:
238 assert r.exit_code == 0, r.dump_logs()
239 assert r.json['HTTPS'] == 'on', r.dump_logs()
240 assert r.json['SSL_PROTOCOL'] == 'TLSv1.3', r.dump_logs()
243 assert r.exit_code == 0, r.dump_logs()
244 assert r.json['HTTPS'] == 'on', r.dump_logs()
245 assert r.json['SSL_PROTOCOL'] == 'TLSv1.2', r.dump_logs()
248 assert r.exit_code != 0, r.dump_logs()
312 assert r.json['HTTPS'] == 'on', r.dump_logs()
[all …]
H A Dtest_15_tracing.py46 r.check_response(http_status=200)
47 trace = r.trace_lines
57 r.check_response(http_status=200)
58 for line in r.trace_lines:
59 m = re.match(r'^\[0-[0x]] .+', line)
70 r.check_response(http_status=200)
71 for line in r.trace_lines:
83 r.check_response(http_status=200)
85 for line in r.trace_lines:
102 r.check_response(http_status=200)
[all …]
H A Dtest_06_eyeballs.py51 r.check_response(count=1, http_status=200)
52 assert r.stats[0]['http_version'] == '3'
61 r.check_response(exitcode=7, http_status=None)
70 r.check_response(count=1, http_status=200)
71 assert r.stats[0]['http_version'] == '2'
80 r.check_response(count=1, http_status=200)
81 assert r.stats[0]['http_version'] == '1.1'
87 r = curl.http_download(urls=[urln])
88 r.check_response(count=1, http_status=200)
89 assert r.stats[0]['time_connect'] > 0.0
[all …]
H A Dtest_03_goaway.py52 self.r = None
68 r: ExecResult = self.r
72 assert r.total_connects == 2
73 for idx, s in enumerate(r.stats):
77 assert r.duration >= timedelta(seconds=count)
88 self.r = None
104 r: ExecResult = self.r
110 for idx, s in enumerate(r.stats):
118 self.r = None
137 r: ExecResult = self.r
[all …]
H A Dtest_19_shutdown.py64 r.check_response(http_status=200, count=2)
65 assert r.tcpdump
82 r.check_response(http_status=200, count=2)
83 assert r.tcpdump
100 shutdowns = [line for line in r.trace_lines
119 r = client.run(args=[
122 r.check_exit_code(0)
123 shutdowns = [line for line in r.trace_lines
148 closings = [line for line in r.trace_lines
152 removes = [line for line in r.trace_lines
[all …]
H A Dtest_05_errors.py63 r.check_exit_code(False)
65 for idx, s in enumerate(r.stats):
86 r.check_exit_code(False)
89 for idx, s in enumerate(r.stats):
100 r.check_exit_code(0)
101 r.check_response(http_status=200, count=1)
105 r.check_exit_code(0)
106 r.check_response(http_status=200, count=1)
108 assert r.stats[0]['http_version'] == '1.1', r.dump_logs()
134 r.check_exit_code(56)
[all …]
H A Dtest_02_download.py108 assert r.total_connects > 1, r.dump_logs()
111 assert r.total_connects == 1, r.dump_logs()
128 assert r.total_connects > 1, r.dump_logs()
131 assert r.total_connects == 1, r.dump_logs()
342 r.check_exit_code(0)
363 r.check_exit_code(0)
391 r.check_exit_code(0)
420 r.check_exit_code(0)
449 r.check_exit_code(0)
572 assert r.total_connects == 1, r.dump_logs()
[all …]
H A Dtest_12_reuse.py54 r.check_response(count=count, http_status=200)
76 r.check_response(count=count, http_status=200)
78 assert r.total_connects == count
97 r.check_response(count=count, http_status=200)
99 assert r.total_connects == 1
100 for s in r.stats:
119 r.check_response(count=count, http_status=200)
121 assert r.total_connects == 1
122 for s in r.stats:
143 assert r.total_connects == 1
[all …]
H A Dtest_07_upload.py189 r = client.run(args=[
192 r.check_exit_code(0)
205 r = client.run(args=[
208 r.check_exit_code(0)
221 r = client.run(args=[
224 r.check_exit_code(0)
354 r.check_stats(1, 404)
376 assert r.exit_code == 0, r.dump_logs()
377 r.check_stats(1, 200)
395 assert r.exit_code == 0, r.dump_logs()
[all …]
H A Dtest_13_proxy_auth.py52 def get_tunnel_proto_used(self, r: ExecResult):
53 for line in r.trace_lines:
66 r.check_response(count=1, http_status=407)
76 r.check_response(count=1, http_status=200)
87 r.check_response(count=1, http_status=407)
99 r.check_response(count=1, http_status=200)
108 r.check_response(exitcode=56, http_status=None)
117 r.check_response(count=1, http_status=200)
133 r.check_response(exitcode=56, http_status=None)
134 assert self.get_tunnel_proto_used(r) == 'HTTP/2' \
[all …]
H A Dtest_20_websockets.py51 if r.exit_code == 0:
84 r = curl.http_download(urls=[url])
85 r.check_response(http_status=426)
93 r = client.run(args=[url, payload])
94 r.check_exit_code(0)
103 r = client.run(args=[url, payload])
104 r.check_exit_code(56)
113 r.check_exit_code(0)
122 r.check_exit_code(0)
131 r.check_exit_code(0)
[all …]
H A Dtest_09_push.py67 r = curl.http_download(urls=[url], alpn_proto='h2', with_stats=False,
69 r.check_exit_code(0)
70 assert len(r.responses) == 2, f'{r.responses}'
71 assert r.responses[0]['status'] == 103, f'{r.responses}'
72 assert 'link' in r.responses[0]['header'], f'{r.responses[0]}'
73 assert r.responses[0]['header']['link'] == '</push/data2>; rel=preload', f'{r.responses[0]}'
81 r = client.run(args=[url])
82 r.check_exit_code(0)
84 assert os.path.exists(os.path.join(client.run_dir, 'push0')), r.dump_logs()
H A Dtest_16_info.py62 r.check_stats(count=count, http_status=200, exitcode=0,
65 for idx, s in enumerate(r.stats):
66 self.check_stat(idx, s, r, dl_size=30, ul_size=0)
79 r.check_stats(count=count, http_status=200, exitcode=0,
82 for idx, s in enumerate(r.stats):
83 self.check_stat(idx, s, r, dl_size=30, ul_size=0)
98 r.check_response(count=count, http_status=200)
99 r.check_stats(count=count, http_status=200, exitcode=0,
102 for idx, s in enumerate(r.stats):
114 for idx, s in enumerate(r.stats):
[all …]
/curl/tests/
H A Dtest1139.pl101 my $r;
106 while(<$r>) {
111 close($r);
118 while(<$r>) {
148 close($r);
198 while(<$r>) {
229 close($r);
237 while(<$r>) {
258 close($r);
266 while(<$r>) {
[all …]
H A Dech_combos.py34 r, start, end):
38 if index == r:
51 for j in range(r):
71 r, start, end)
73 r, start + 1, end)
79 def CombinationRepetition(arr, badarr, n, r): argument
83 chosen = [0] * r
87 CombinationRepetitionUtil(chosen, arr, badarr, 0, r, 0, n)
93 r = 8 variable
96 CombinationRepetition(arr, badarr, n, r)
/curl/lib/
H A Dcurl_rtmp.c217 RTMP *r = RTMP_Alloc(); in rtmp_setup_connection() local
218 if(!r) in rtmp_setup_connection()
221 RTMP_Init(r); in rtmp_setup_connection()
224 RTMP_Free(r); in rtmp_setup_connection()
227 conn->proto.rtmp = r; in rtmp_setup_connection()
234 RTMP *r = conn->proto.rtmp; in rtmp_connect() local
254 if(!RTMP_Connect1(r, NULL)) in rtmp_connect()
258 r->m_bSendCounter = TRUE; in rtmp_connect()
301 if(r) { in rtmp_disconnect()
303 RTMP_Close(r); in rtmp_disconnect()
[all …]
H A Dselect.c72 int r = 0; in Curl_wait_ms() local
98 if(r) { in Curl_wait_ms()
101 r = 0; in Curl_wait_ms()
103 r = -1; in Curl_wait_ms()
105 return r; in Curl_wait_ms()
192 int r; in Curl_socket_check() local
229 r = 0; in Curl_socket_check()
252 return r; in Curl_socket_check()
280 int r; in Curl_poll() local
369 r = 0; in Curl_poll()
[all …]
/curl/scripts/
H A Drelease-notes.pl78 for my $r (1 .. $#refs) {
79 if(!$refused[$r] & 1) {
80 return $r;
173 my $r = getref();
174 $refs[$r] = $ref;
175 $moreinfo{$short}=$r;
176 $refused[$r] |= 1;
224 my $r = $refs[$n];
239 for my $r (1 .. $#refs) {
240 if($refused[$r] != 3) {
[all …]
/curl/docs/examples/
H A Dftpuploadresume.c37 int r; in getcontentlengthfunc() local
40 r = sscanf(ptr, "Content-Length: %ld\n", &len); in getcontentlengthfunc()
41 if(r) in getcontentlengthfunc()
75 CURLcode r = CURLE_GOT_NOTHING; in upload() local
109 for(c = 0; (r != CURLE_OK) && (c < tries); c++) { in upload()
123 r = curl_easy_perform(curlhandle); in upload()
124 if(r != CURLE_OK) in upload()
138 r = curl_easy_perform(curlhandle); in upload()
143 if(r == CURLE_OK) in upload()
146 fprintf(stderr, "%s\n", curl_easy_strerror(r)); in upload()

Completed in 51 milliseconds

12345678