test1034 807 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. # Server-side
  15. <reply>
  16. </reply>
  17. #
  18. # Client-side
  19. <client>
  20. <server>
  21. none
  22. </server>
  23. <features>
  24. idn
  25. http
  26. proxy
  27. </features>
  28. <setenv>
  29. LC_ALL=
  30. LC_CTYPE=en_US.UTF-8
  31. </setenv>
  32. <precheck>
  33. perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
  34. </precheck>
  35. <name>
  36. HTTP over proxy with malformatted IDN host name
  37. </name>
  38. # This host name contains an invalid UTF-8 byte sequence that can't be
  39. # converted into an IDN name
  40. <stdin>
  41. url = "http://invalid-utf8-â�.local/page/%TESTNUMBER"
  42. </stdin>
  43. <command>
  44. -K - -x %HOSTIP:%NOLISTENPORT
  45. </command>
  46. </client>
  47. #
  48. <verify>
  49. <errorcode>
  50. 3
  51. </errorcode>
  52. </verify>
  53. </testcase>