Return to test1448 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data |
1.1 ! misho 1: <testcase> ! 2: <info> ! 3: <keywords> ! 4: HTTP ! 5: HTTP GET ! 6: IDN ! 7: followlocation ! 8: --write-out ! 9: </keywords> ! 10: </info> ! 11: ! 12: # ! 13: # Server-side ! 14: <reply> ! 15: <data nocheck="yes"> ! 16: HTTP/1.1 302 OK swsbounce ! 17: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 18: Content-Length: 9 ! 19: Content-Type: text/plain ! 20: Location: http://åäö.se:%HTTPPORT/14480001 ! 21: ! 22: redirect ! 23: </data> ! 24: <data1 nocheck="yes"> ! 25: HTTP/1.1 200 OK ! 26: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 27: Content-Length: 3 ! 28: Content-Type: text/plain; charset=us-ascii ! 29: ! 30: OK ! 31: </data1> ! 32: </reply> ! 33: ! 34: # ! 35: # Client-side ! 36: <client> ! 37: <server> ! 38: http ! 39: </server> ! 40: <features> ! 41: idn ! 42: </features> ! 43: <setenv> ! 44: LC_ALL=en_US.UTF-8 ! 45: LC_CTYPE=en_US.UTF-8 ! 46: </setenv> ! 47: <precheck> ! 48: perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' ! 49: </precheck> ! 50: <name> ! 51: Redirect following to UTF-8 IDN host name ! 52: </name> ! 53: ! 54: <command> ! 55: http://åäö.se:%HTTPPORT/1448 --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -L --connect-to %HOSTIP:%HTTPPORT:%HOSTIP:%HTTPPORT ! 56: </command> ! 57: </client> ! 58: ! 59: # ! 60: # Verify data after the test has been "shot" ! 61: <verify> ! 62: <strip> ! 63: ^User-Agent:.* ! 64: </strip> ! 65: <protocol> ! 66: GET /1448 HTTP/1.1 ! 67: Host: xn--4cab6c.se:%HTTPPORT ! 68: Accept: */* ! 69: ! 70: GET /14480001 HTTP/1.1 ! 71: Host: xn--4cab6c.se:%HTTPPORT ! 72: Accept: */* ! 73: ! 74: </protocol> ! 75: ! 76: <stdout> ! 77: HTTP/1.1 302 OK swsbounce ! 78: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 79: Content-Length: 9 ! 80: Content-Type: text/plain ! 81: Location: http://åäö.se:%HTTPPORT/14480001 ! 82: ! 83: HTTP/1.1 200 OK ! 84: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 85: Content-Length: 3 ! 86: Content-Type: text/plain; charset=us-ascii ! 87: ! 88: OK ! 89: </stdout> ! 90: ! 91: </verify> ! 92: </testcase>