test355 764 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. Alt-Svc
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Content-Length: 6
  15. Connection: close
  16. Content-Type: text/html
  17. Funny-head: yesyes
  18. -foo-
  19. </data>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <features>
  25. alt-svc
  26. </features>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. load Alt-Svc from file and use
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --alt-svc ""
  35. </command>
  36. <file name="log/altsvc-%TESTNUMBER">
  37. h1 example.com 80 h1 %HOSTIP %HTTPPORT "20290222 22:19:28" 0 0
  38. </file>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. GET /%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. </protocol>
  49. </verify>
  50. </testcase>