test165 1.1 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: Tue, 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. proxy
  30. </features>
  31. <setenv>
  32. LC_ALL=en_US.UTF-8
  33. LC_CTYPE=en_US.UTF-8
  34. </setenv>
  35. <precheck>
  36. perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
  37. </precheck>
  38. <name>
  39. HTTP over proxy with IDN host name
  40. </name>
  41. <command>
  42. http://www.åäö.se/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT http://www.große.de/page/%TESTNUMBER
  43. </command>
  44. </client>
  45. #
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. GET http://www.xn--4cab6c.se/page/%TESTNUMBER HTTP/1.1
  50. Host: www.xn--4cab6c.se
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. Proxy-Connection: Keep-Alive
  54. GET http://www.xn--groe-xna.de/page/%TESTNUMBER HTTP/1.1
  55. Host: www.xn--groe-xna.de
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. Proxy-Connection: Keep-Alive
  59. </protocol>
  60. </verify>
  61. </testcase>