xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP proxy |
| 7 | IDN |
| 8 | </keywords> |
| 9 | </info> |
| 10 | |
| 11 | # |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | <data> |
| 15 | HTTP/1.1 200 OK
|
| 16 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 17 | Server: test-server/fake swsclose
|
| 18 | Content-Type: text/html
|
| 19 | Funny-head: yesyes
|
| 20 |
|
| 21 | </data> |
| 22 | </reply> |
| 23 | |
| 24 | # |
| 25 | # Client-side |
| 26 | <client> |
| 27 | <server> |
| 28 | http |
| 29 | </server> |
| 30 | <features> |
| 31 | idn |
| 32 | proxy |
| 33 | </features> |
| 34 | <setenv> |
| 35 | LC_ALL=en_US.UTF-8 |
| 36 | LC_CTYPE=en_US.UTF-8 |
| 37 | </setenv> |
| 38 | <precheck> |
| 39 | perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' |
| 40 | </precheck> |
| 41 | <name> |
| 42 | HTTP over proxy with IDN host name |
| 43 | </name> |
| 44 | <command> |
| 45 | http://www.åäö.se/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT http://www.große.de/page/%TESTNUMBER |
| 46 | </command> |
| 47 | </client> |
| 48 | |
| 49 | # |
| 50 | # Verify data after the test has been "shot" |
| 51 | <verify> |
| 52 | <protocol> |
| 53 | GET http://www.xn--4cab6c.se/page/%TESTNUMBER HTTP/1.1
|
| 54 | Host: www.xn--4cab6c.se
|
| 55 | User-Agent: curl/%VERSION
|
| 56 | Accept: */*
|
| 57 | Proxy-Connection: Keep-Alive
|
| 58 |
|
| 59 | GET http://www.xn--groe-xna.de/page/%TESTNUMBER HTTP/1.1
|
| 60 | Host: www.xn--groe-xna.de
|
| 61 | User-Agent: curl/%VERSION
|
| 62 | Accept: */*
|
| 63 | Proxy-Connection: Keep-Alive
|
| 64 |
|
| 65 | </protocol> |
| 66 | </verify> |
| 67 | </testcase> |