Added test for % decoding.
Showing
1 changed file
with
513 additions
and
0 deletions
examples/Urls.good
0 → 100644
1 | scheme://%75%73%65%72:%70%61%73%73@%68%6f%73%74 --> SUCCESS | ||
2 | scheme <scheme> | ||
3 | user <user> | ||
4 | passwd <pass> | ||
5 | auth <> | ||
6 | host <hest> | ||
7 | port 0 | ||
8 | path <> | ||
9 | query <> | ||
10 | ftp://user:pass@host//a/path --> SUCCESS | ||
11 | scheme <ftp> | ||
12 | user <user> | ||
13 | passwd <pass> | ||
14 | auth <> | ||
15 | host <host> | ||
16 | port 0 | ||
17 | path </a/path> | ||
18 | query <> | ||
19 | ftp://:pass@host//a/path --> SUCCESS | ||
20 | scheme <ftp> | ||
21 | user <> | ||
22 | passwd <pass> | ||
23 | auth <> | ||
24 | host <host> | ||
25 | port 0 | ||
26 | path </a/path> | ||
27 | query <> | ||
28 | ftp://user:@host//a/path --> SUCCESS | ||
29 | scheme <ftp> | ||
30 | user <user> | ||
31 | passwd <> | ||
32 | auth <> | ||
33 | host <host> | ||
34 | port 0 | ||
35 | path </a/path> | ||
36 | query <> | ||
37 | ftp://user:pass@//a/path --> SUCCESS | ||
38 | scheme <ftp> | ||
39 | user <user> | ||
40 | passwd <pass> | ||
41 | auth <> | ||
42 | host <> | ||
43 | port 0 | ||
44 | path </a/path> | ||
45 | query <> | ||
46 | ftp://user:@//a/path --> SUCCESS | ||
47 | scheme <ftp> | ||
48 | user <user> | ||
49 | passwd <> | ||
50 | auth <> | ||
51 | host <> | ||
52 | port 0 | ||
53 | path </a/path> | ||
54 | query <> | ||
55 | ftp://:@host//a/path --> SUCCESS | ||
56 | scheme <ftp> | ||
57 | user <> | ||
58 | passwd <> | ||
59 | auth <> | ||
60 | host <host> | ||
61 | port 0 | ||
62 | path </a/path> | ||
63 | query <> | ||
64 | ftp://:pass@//a/path --> SUCCESS | ||
65 | scheme <ftp> | ||
66 | user <> | ||
67 | passwd <pass> | ||
68 | auth <> | ||
69 | host <> | ||
70 | port 0 | ||
71 | path </a/path> | ||
72 | query <> | ||
73 | ftp://:@//a/path --> SUCCESS | ||
74 | scheme <ftp> | ||
75 | user <> | ||
76 | passwd <> | ||
77 | auth <> | ||
78 | host <> | ||
79 | port 0 | ||
80 | path </a/path> | ||
81 | query <> | ||
82 | ftp://://a/path --> SUCCESS | ||
83 | scheme <ftp> | ||
84 | user <> | ||
85 | passwd <> | ||
86 | auth <> | ||
87 | host <> | ||
88 | port 0 | ||
89 | path </a/path> | ||
90 | query <> | ||
91 | ftp://@//a/path --> SUCCESS | ||
92 | scheme <ftp> | ||
93 | user <> | ||
94 | passwd <> | ||
95 | auth <> | ||
96 | host <> | ||
97 | port 0 | ||
98 | path </a/path> | ||
99 | query <> | ||
100 | ftp:////a/path --> SUCCESS | ||
101 | scheme <ftp> | ||
102 | user <> | ||
103 | passwd <> | ||
104 | auth <> | ||
105 | host <> | ||
106 | port 0 | ||
107 | path </a/path> | ||
108 | query <> | ||
109 | ftp://user:pass@host/a/path --> SUCCESS | ||
110 | scheme <ftp> | ||
111 | user <user> | ||
112 | passwd <pass> | ||
113 | auth <> | ||
114 | host <host> | ||
115 | port 0 | ||
116 | path <a/path> | ||
117 | query <> | ||
118 | ftp://:pass@host/a/path --> SUCCESS | ||
119 | scheme <ftp> | ||
120 | user <> | ||
121 | passwd <pass> | ||
122 | auth <> | ||
123 | host <host> | ||
124 | port 0 | ||
125 | path <a/path> | ||
126 | query <> | ||
127 | ftp://user:@host/a/path --> SUCCESS | ||
128 | scheme <ftp> | ||
129 | user <user> | ||
130 | passwd <> | ||
131 | auth <> | ||
132 | host <host> | ||
133 | port 0 | ||
134 | path <a/path> | ||
135 | query <> | ||
136 | ftp://user:pass@/a/path --> SUCCESS | ||
137 | scheme <ftp> | ||
138 | user <user> | ||
139 | passwd <pass> | ||
140 | auth <> | ||
141 | host <> | ||
142 | port 0 | ||
143 | path <a/path> | ||
144 | query <> | ||
145 | ftp://user:@/a/path --> SUCCESS | ||
146 | scheme <ftp> | ||
147 | user <user> | ||
148 | passwd <> | ||
149 | auth <> | ||
150 | host <> | ||
151 | port 0 | ||
152 | path <a/path> | ||
153 | query <> | ||
154 | ftp://:@host/a/path --> SUCCESS | ||
155 | scheme <ftp> | ||
156 | user <> | ||
157 | passwd <> | ||
158 | auth <> | ||
159 | host <host> | ||
160 | port 0 | ||
161 | path <a/path> | ||
162 | query <> | ||
163 | ftp://:pass@/a/path --> SUCCESS | ||
164 | scheme <ftp> | ||
165 | user <> | ||
166 | passwd <pass> | ||
167 | auth <> | ||
168 | host <> | ||
169 | port 0 | ||
170 | path <a/path> | ||
171 | query <> | ||
172 | ftp://:@/a/path --> SUCCESS | ||
173 | scheme <ftp> | ||
174 | user <> | ||
175 | passwd <> | ||
176 | auth <> | ||
177 | host <> | ||
178 | port 0 | ||
179 | path <a/path> | ||
180 | query <> | ||
181 | ftp://:/a/path --> SUCCESS | ||
182 | scheme <ftp> | ||
183 | user <> | ||
184 | passwd <> | ||
185 | auth <> | ||
186 | host <> | ||
187 | port 0 | ||
188 | path <a/path> | ||
189 | query <> | ||
190 | ftp://@/a/path --> SUCCESS | ||
191 | scheme <ftp> | ||
192 | user <> | ||
193 | passwd <> | ||
194 | auth <> | ||
195 | host <> | ||
196 | port 0 | ||
197 | path <a/path> | ||
198 | query <> | ||
199 | ftp:///a/path --> SUCCESS | ||
200 | scheme <ftp> | ||
201 | user <> | ||
202 | passwd <> | ||
203 | auth <> | ||
204 | host <> | ||
205 | port 0 | ||
206 | path <a/path> | ||
207 | query <> | ||
208 | pop://pop.example.net --> SUCCESS | ||
209 | scheme <pop> | ||
210 | user <> | ||
211 | passwd <> | ||
212 | auth <> | ||
213 | host <pop.example.net> | ||
214 | port 0 | ||
215 | path <> | ||
216 | query <> | ||
217 | pop://user@pop.example.net --> SUCCESS | ||
218 | scheme <pop> | ||
219 | user <user> | ||
220 | passwd <> | ||
221 | auth <> | ||
222 | host <pop.example.net> | ||
223 | port 0 | ||
224 | path <> | ||
225 | query <> | ||
226 | pop://user:passwd@pop.example.net --> SUCCESS | ||
227 | scheme <pop> | ||
228 | user <user> | ||
229 | passwd <passwd> | ||
230 | auth <> | ||
231 | host <pop.example.net> | ||
232 | port 0 | ||
233 | path <> | ||
234 | query <> | ||
235 | pop://user;auth=*@pop.example.net --> SUCCESS | ||
236 | scheme <pop> | ||
237 | user <user> | ||
238 | passwd <> | ||
239 | auth <*> | ||
240 | host <pop.example.net> | ||
241 | port 0 | ||
242 | path <> | ||
243 | query <> | ||
244 | pop://pop.example.net:111 --> SUCCESS | ||
245 | scheme <pop> | ||
246 | user <> | ||
247 | passwd <> | ||
248 | auth <> | ||
249 | host <pop.example.net> | ||
250 | port 111 | ||
251 | path <> | ||
252 | query <> | ||
253 | pop://user@pop.example.net:111 --> SUCCESS | ||
254 | scheme <pop> | ||
255 | user <user> | ||
256 | passwd <> | ||
257 | auth <> | ||
258 | host <pop.example.net> | ||
259 | port 111 | ||
260 | path <> | ||
261 | query <> | ||
262 | pop://user:passwd@pop.example.net:111 --> SUCCESS | ||
263 | scheme <pop> | ||
264 | user <user> | ||
265 | passwd <passwd> | ||
266 | auth <> | ||
267 | host <pop.example.net> | ||
268 | port 111 | ||
269 | path <> | ||
270 | query <> | ||
271 | pop://user;auth=*@pop.example.net:111 --> SUCCESS | ||
272 | scheme <pop> | ||
273 | user <user> | ||
274 | passwd <> | ||
275 | auth <*> | ||
276 | host <pop.example.net> | ||
277 | port 111 | ||
278 | path <> | ||
279 | query <> | ||
280 | imap://imap.example.net --> SUCCESS | ||
281 | scheme <imap> | ||
282 | user <> | ||
283 | passwd <> | ||
284 | auth <> | ||
285 | host <imap.example.net> | ||
286 | port 0 | ||
287 | path <> | ||
288 | query <> | ||
289 | imap://user@imap.example.net --> SUCCESS | ||
290 | scheme <imap> | ||
291 | user <user> | ||
292 | passwd <> | ||
293 | auth <> | ||
294 | host <imap.example.net> | ||
295 | port 0 | ||
296 | path <> | ||
297 | query <> | ||
298 | imap://user:passwd@imap.example.net --> SUCCESS | ||
299 | scheme <imap> | ||
300 | user <user> | ||
301 | passwd <passwd> | ||
302 | auth <> | ||
303 | host <imap.example.net> | ||
304 | port 0 | ||
305 | path <> | ||
306 | query <> | ||
307 | imap://user;auth=*@imap.example.net --> SUCCESS | ||
308 | scheme <imap> | ||
309 | user <user> | ||
310 | passwd <> | ||
311 | auth <*> | ||
312 | host <imap.example.net> | ||
313 | port 0 | ||
314 | path <> | ||
315 | query <> | ||
316 | imap://imap.example.net:111 --> SUCCESS | ||
317 | scheme <imap> | ||
318 | user <> | ||
319 | passwd <> | ||
320 | auth <> | ||
321 | host <imap.example.net> | ||
322 | port 111 | ||
323 | path <> | ||
324 | query <> | ||
325 | imap://user@imap.example.net:111 --> SUCCESS | ||
326 | scheme <imap> | ||
327 | user <user> | ||
328 | passwd <> | ||
329 | auth <> | ||
330 | host <imap.example.net> | ||
331 | port 111 | ||
332 | path <> | ||
333 | query <> | ||
334 | imap://user:passwd@imap.example.net:111 --> SUCCESS | ||
335 | scheme <imap> | ||
336 | user <user> | ||
337 | passwd <passwd> | ||
338 | auth <> | ||
339 | host <imap.example.net> | ||
340 | port 111 | ||
341 | path <> | ||
342 | query <> | ||
343 | imap://user;auth=*@imap.example.net:111 --> SUCCESS | ||
344 | scheme <imap> | ||
345 | user <user> | ||
346 | passwd <> | ||
347 | auth <*> | ||
348 | host <imap.example.net> | ||
349 | port 111 | ||
350 | path <> | ||
351 | query <> | ||
352 | imap://imap.example.net/mbox --> SUCCESS | ||
353 | scheme <imap> | ||
354 | user <> | ||
355 | passwd <> | ||
356 | auth <> | ||
357 | host <imap.example.net> | ||
358 | port 0 | ||
359 | path <mbox> | ||
360 | query <> | ||
361 | imap://user@imap.example.net/mbox --> SUCCESS | ||
362 | scheme <imap> | ||
363 | user <user> | ||
364 | passwd <> | ||
365 | auth <> | ||
366 | host <imap.example.net> | ||
367 | port 0 | ||
368 | path <mbox> | ||
369 | query <> | ||
370 | imap://user:passwd@imap.example.net/mbox --> SUCCESS | ||
371 | scheme <imap> | ||
372 | user <user> | ||
373 | passwd <passwd> | ||
374 | auth <> | ||
375 | host <imap.example.net> | ||
376 | port 0 | ||
377 | path <mbox> | ||
378 | query <> | ||
379 | imap://user;auth=*@imap.example.net/mbox --> SUCCESS | ||
380 | scheme <imap> | ||
381 | user <user> | ||
382 | passwd <> | ||
383 | auth <*> | ||
384 | host <imap.example.net> | ||
385 | port 0 | ||
386 | path <mbox> | ||
387 | query <> | ||
388 | imap://imap.example.net:111/mbox --> SUCCESS | ||
389 | scheme <imap> | ||
390 | user <> | ||
391 | passwd <> | ||
392 | auth <> | ||
393 | host <imap.example.net> | ||
394 | port 111 | ||
395 | path <mbox> | ||
396 | query <> | ||
397 | imap://user@imap.example.net:111/mbox --> SUCCESS | ||
398 | scheme <imap> | ||
399 | user <user> | ||
400 | passwd <> | ||
401 | auth <> | ||
402 | host <imap.example.net> | ||
403 | port 111 | ||
404 | path <mbox> | ||
405 | query <> | ||
406 | imap://user:passwd@imap.example.net:111/mbox --> SUCCESS | ||
407 | scheme <imap> | ||
408 | user <user> | ||
409 | passwd <passwd> | ||
410 | auth <> | ||
411 | host <imap.example.net> | ||
412 | port 111 | ||
413 | path <mbox> | ||
414 | query <> | ||
415 | imap://user;auth=*@imap.example.net:111/mbox --> SUCCESS | ||
416 | scheme <imap> | ||
417 | user <user> | ||
418 | passwd <> | ||
419 | auth <*> | ||
420 | host <imap.example.net> | ||
421 | port 111 | ||
422 | path <mbox> | ||
423 | query <> | ||
424 | imap://imap.example.net/mbox/user@host --> SUCCESS | ||
425 | scheme <imap> | ||
426 | user <imap.example.net/mbox/user> | ||
427 | passwd <> | ||
428 | auth <> | ||
429 | host <host> | ||
430 | port 0 | ||
431 | path <> | ||
432 | query <> | ||
433 | imap://user@imap.example.net/mbox/user@host --> SUCCESS | ||
434 | scheme <imap> | ||
435 | user <user> | ||
436 | passwd <> | ||
437 | auth <> | ||
438 | host <imap.example.net> | ||
439 | port 0 | ||
440 | path <mbox/user@host> | ||
441 | query <> | ||
442 | imap://user:passwd@imap.example.net/mbox/user@host --> SUCCESS | ||
443 | scheme <imap> | ||
444 | user <user> | ||
445 | passwd <passwd> | ||
446 | auth <> | ||
447 | host <imap.example.net> | ||
448 | port 0 | ||
449 | path <mbox/user@host> | ||
450 | query <> | ||
451 | imap://user;auth=*@imap.example.net/mbox/user@host --> SUCCESS | ||
452 | scheme <imap> | ||
453 | user <user> | ||
454 | passwd <> | ||
455 | auth <*> | ||
456 | host <imap.example.net> | ||
457 | port 0 | ||
458 | path <mbox/user@host> | ||
459 | query <> | ||
460 | imap://imap.example.net:111/mbox/user@host --> SUCCESS | ||
461 | scheme <imap> | ||
462 | user <imap.example.net> | ||
463 | passwd <111/mbox/user> | ||
464 | auth <> | ||
465 | host <host> | ||
466 | port 0 | ||
467 | path <> | ||
468 | query <> | ||
469 | imap://user@imap.example.net:111/mbox/user@host --> SUCCESS | ||
470 | scheme <imap> | ||
471 | user <user> | ||
472 | passwd <> | ||
473 | auth <> | ||
474 | host <imap.example.net> | ||
475 | port 111 | ||
476 | path <mbox/user@host> | ||
477 | query <> | ||
478 | imap://user:passwd@imap.example.net:111/mbox/user@host --> SUCCESS | ||
479 | scheme <imap> | ||
480 | user <user> | ||
481 | passwd <passwd> | ||
482 | auth <> | ||
483 | host <imap.example.net> | ||
484 | port 111 | ||
485 | path <mbox/user@host> | ||
486 | query <> | ||
487 | imap://user;auth=*@imap.example.net:111/mbox/user@host --> SUCCESS | ||
488 | scheme <imap> | ||
489 | user <user> | ||
490 | passwd <> | ||
491 | auth <*> | ||
492 | host <imap.example.net> | ||
493 | port 111 | ||
494 | path <mbox/user@host> | ||
495 | query <> | ||
496 | ftp://ftp.example.org/mbox/user%40host --> SUCCESS | ||
497 | scheme <ftp> | ||
498 | user <> | ||
499 | passwd <> | ||
500 | auth <> | ||
501 | host <ftp.example.org> | ||
502 | port 0 | ||
503 | path <mbox/user@host> | ||
504 | query <> | ||
505 | ftp://ftp.example.org:111/mbox/user%40host --> SUCCESS | ||
506 | scheme <ftp> | ||
507 | user <> | ||
508 | passwd <> | ||
509 | auth <> | ||
510 | host <ftp.example.org> | ||
511 | port 111 | ||
512 | path <mbox/user@host> | ||
513 | query <> |
-
Please register or sign in to post a comment