test1046 909 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 numeric localhost --interface
  34. </name>
  35. <command>
  36. -g "http://%HOST6IP:%HTTP6PORT/1046" --interface ::1
  37. </command>
  38. # --interface doesn't accept an address surrounded by [] so %CLIENT6IP is out
  39. <precheck>
  40. perl -e "print 'Test requires default test server host address' if ( '%CLIENT6IP' ne '[::1]' );"
  41. </precheck>
  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 /1046 HTTP/1.1
  51. Host: %HOST6IP:%HTTP6PORT
  52. Accept: */*
  53. </protocol>
  54. </verify>
  55. </testcase>