xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <testcase> |
| 3 | <info> |
| 4 | <keywords> |
| 5 | HTTP |
| 6 | HTTP GET |
| 7 | HTTP proxy |
| 8 | IDN |
| 9 | FAILURE |
| 10 | config file |
| 11 | </keywords> |
| 12 | </info> |
| 13 | |
| 14 | # |
| 15 | # Server-side |
| 16 | <reply> |
| 17 | </reply> |
| 18 | |
| 19 | # |
| 20 | # Client-side |
| 21 | <client> |
| 22 | <server> |
| 23 | none |
| 24 | </server> |
| 25 | <features> |
| 26 | idn |
| 27 | http |
| 28 | proxy |
| 29 | </features> |
| 30 | <setenv> |
| 31 | LC_ALL= |
| 32 | LC_CTYPE=en_US.UTF-8 |
| 33 | </setenv> |
| 34 | <precheck> |
| 35 | perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' |
| 36 | </precheck> |
| 37 | <name> |
| 38 | HTTP over proxy with malformatted IDN host name |
| 39 | </name> |
| 40 | |
| 41 | # This host name contains an invalid UTF-8 byte sequence that can't be |
| 42 | # converted into an IDN name |
| 43 | <stdin> |
| 44 | url = "http://invalid-utf8-â.local/page/%TESTNUMBER" |
| 45 | </stdin> |
| 46 | <command> |
| 47 | -K - -x %HOSTIP:%NOLISTENPORT |
| 48 | </command> |
| 49 | </client> |
| 50 | |
| 51 | # |
| 52 | <verify> |
| 53 | <errorcode> |
| 54 | 3 |
| 55 | </errorcode> |
| 56 | </verify> |
| 57 | </testcase> |