test1034 917 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. IDN
  8. FAILURE
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.0 503 Service Unavailable
  16. Date: Thu, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake swsclose
  18. Content-Type: text/html
  19. Funny-head: yesyes
  20. </data>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <features>
  29. idn
  30. </features>
  31. <setenv>
  32. CHARSET=UTF-8
  33. </setenv>
  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. <command>
  40. http://invalid-utf8-â�.local/page/1034 -x %HOSTIP:%HTTPPORT
  41. </command>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <strip>
  47. ^User-Agent:.*
  48. </strip>
  49. <protocol>
  50. GET http://invalid-utf8-â�.local/page/1034 HTTP/1.1
  51. Host: invalid-utf8-â�.local
  52. Accept: */*
  53. Proxy-Connection: Keep-Alive
  54. </protocol>
  55. </verify>
  56. </testcase>