test1034 746 B

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