2
0

test1083 933 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --interface
  7. IPv6
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 200 OK
  15. Date: Mon, 28 Jul 2008 14:49:00 GMT
  16. Server: test-server/fake
  17. Content-Length: 6
  18. Connection: close
  19. Content-Type: text/plain
  20. -foo-
  21. </data>
  22. </reply>
  23. #
  24. # Client-side
  25. <client>
  26. <features>
  27. ipv6
  28. </features>
  29. <server>
  30. http-ipv6
  31. </server>
  32. <name>
  33. HTTP-IPv6 GET with ip6-localhost --interface
  34. </name>
  35. <command>
  36. -g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --interface ip6-localhost
  37. </command>
  38. <precheck>
  39. perl -e "if ('%CLIENT6IP' ne '[::1]') {print 'Test requires default test client host address';} else {exec './server/resolve --ipv6 ip6-localhost'; print 'Cannot run precheck resolve';}"
  40. </precheck>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOST6IP:%HTTP6PORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. </protocol>
  51. </verify>
  52. </testcase>