test1046 915 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/%TESTNUMBER" --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 client host address' if ( '%CLIENT6IP' ne '[::1]' );"
  41. </precheck>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <protocol>
  47. GET /%TESTNUMBER HTTP/1.1
  48. Host: %HOST6IP:%HTTP6PORT
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. </protocol>
  52. </verify>
  53. </testcase>