test1230 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP CONNECT
  6. HTTP proxy
  7. IPv6
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 200 OK
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Content-Length: 9
  17. mooooooo
  18. </data>
  19. <connect>
  20. HTTP/1.1 200 welcome dear
  21. Date: Thu, 09 Nov 2010 14:49:00 GMT
  22. </connect>
  23. <datacheck>
  24. HTTP/1.1 200 welcome dear
  25. Date: Thu, 09 Nov 2010 14:49:00 GMT
  26. HTTP/1.1 200 OK
  27. Date: Thu, 09 Nov 2010 14:49:00 GMT
  28. Content-Length: 9
  29. mooooooo
  30. </datacheck>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <features>
  36. ipv6
  37. </features>
  38. <server>
  39. http-proxy
  40. http-ipv6
  41. http
  42. </server>
  43. <name>
  44. HTTP CONNECT to IPv6 numerical address
  45. </name>
  46. # 0x4ce == 1230, the test number
  47. <command>
  48. http://[1234:1234:1234::4ce]:%HTTPPORT/wanted/page/1230 -p -x %HOSTIP:%HTTPPORT
  49. </command>
  50. </client>
  51. #
  52. # Verify data after the test has been "shot"
  53. <verify>
  54. <strip>
  55. ^User-Agent:.*
  56. </strip>
  57. <protocol>
  58. CONNECT [1234:1234:1234::4ce]:%HTTPPORT HTTP/1.1
  59. Host: [1234:1234:1234::4ce]:%HTTPPORT
  60. Proxy-Connection: Keep-Alive
  61. GET /wanted/page/1230 HTTP/1.1
  62. Host: [1234:1234:1234::4ce]:%HTTPPORT
  63. Accept: */*
  64. </protocol>
  65. </verify>
  66. </testcase>