test1034 801 B

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