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: Tue, 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: Tue, 09 Nov 2010 14:49:00 GMT
  22. </connect>
  23. <datacheck>
  24. HTTP/1.1 200 welcome dear
  25. Date: Tue, 09 Nov 2010 14:49:00 GMT
  26. HTTP/1.1 200 OK
  27. Date: Tue, 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. proxy
  38. </features>
  39. <server>
  40. http-proxy
  41. http-ipv6
  42. http
  43. </server>
  44. <name>
  45. HTTP CONNECT to IPv6 numerical address
  46. </name>
  47. # 0x4ce == %TESTNUMBER, the test number
  48. <command>
  49. http://[1234:1234:1234::4ce]:%HTTPPORT/wanted/page/%TESTNUMBER -p -x %HOSTIP:%HTTPPORT
  50. </command>
  51. </client>
  52. #
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <protocol>
  56. CONNECT [1234:1234:1234::4ce]:%HTTPPORT HTTP/1.1
  57. Host: [1234:1234:1234::4ce]:%HTTPPORT
  58. User-Agent: curl/%VERSION
  59. Proxy-Connection: Keep-Alive
  60. GET /wanted/page/%TESTNUMBER HTTP/1.1
  61. Host: [1234:1234:1234::4ce]:%HTTPPORT
  62. User-Agent: curl/%VERSION
  63. Accept: */*
  64. </protocol>
  65. </verify>
  66. </testcase>