test165 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. IDN
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 200 OK
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake swsclose
  17. Content-Type: text/html
  18. Funny-head: yesyes
  19. </data>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <features>
  28. idn
  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 IDN host name
  39. </name>
  40. <command>
  41. http://www.åäö.se/page/165 -x %HOSTIP:%HTTPPORT http://www.große.de/page/165
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <strip>
  48. ^User-Agent:.*
  49. </strip>
  50. <protocol>
  51. GET http://www.xn--4cab6c.se/page/165 HTTP/1.1
  52. Host: www.xn--4cab6c.se
  53. Accept: */*
  54. Proxy-Connection: Keep-Alive
  55. GET http://www.xn--groe-xna.de/page/165 HTTP/1.1
  56. Host: www.xn--groe-xna.de
  57. Accept: */*
  58. Proxy-Connection: Keep-Alive
  59. </protocol>
  60. </verify>
  61. </testcase>