test1083 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/1083" --interface ip6-localhost
  37. </command>
  38. <precheck>
  39. perl -e "if ('%CLIENT6IP' ne '[::1]') {print 'Test requires default test server 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. <strip>
  46. ^User-Agent:.*
  47. </strip>
  48. <protocol>
  49. GET /1083 HTTP/1.1
  50. Host: %HOST6IP:%HTTP6PORT
  51. Accept: */*
  52. </protocol>
  53. </verify>
  54. </testcase>