test413 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Alt-Svc
  7. trailing-dot
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 200 OK
  15. Date: Tue, 09 Nov 2010 14:49:00 GMT
  16. Content-Length: 6
  17. Connection: close
  18. Content-Type: text/html
  19. Funny-head: yesyes
  20. -foo-
  21. </data>
  22. </reply>
  23. #
  24. # Client-side
  25. <client>
  26. <features>
  27. alt-svc
  28. debug
  29. </features>
  30. <server>
  31. http
  32. </server>
  33. <name>
  34. alt-svc using host name with trailing dot on host from file
  35. </name>
  36. <setenv>
  37. # make debug-curl accept Alt-Svc over plain HTTP
  38. CURL_ALTSVC_HTTP="yeah"
  39. </setenv>
  40. <command>
  41. --alt-svc "log/altsvc-%TESTNUMBER" "http://whohoo:12345/%TESTNUMBER"
  42. </command>
  43. <file name="log/altsvc-%TESTNUMBER">
  44. h1 whohoo. 12345 h1 %HOSTIP %HTTPPORT "20290222 22:19:28" 0 0
  45. </file>
  46. </client>
  47. #
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <protocol>
  51. GET /%TESTNUMBER HTTP/1.1
  52. Host: whohoo:12345
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. Alt-Used: %HOSTIP:%HTTPPORT
  56. </protocol>
  57. </verify>
  58. </testcase>