test2403 979 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP/2
  7. HTTPS
  8. -w
  9. %header
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <data nocheck="yes" crlf="yes">
  16. HTTP/1.1 200 OK
  17. Date: Tue, 09 Nov 2010 14:49:00 GMT
  18. Content-Length: 6
  19. Connection: close
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. -foo-
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <features>
  29. h2c
  30. SSL
  31. headers-api
  32. </features>
  33. <server>
  34. http
  35. http/2
  36. </server>
  37. <name>
  38. HTTP/2 GET
  39. </name>
  40. <setenv>
  41. </setenv>
  42. <command>
  43. -k --http2 -w '%{header_json}\n' "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER"
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <stdout crlf="yes">
  50. HTTP/2 200
  51. date: Tue, 09 Nov 2010 14:49:00 GMT
  52. content-length: 6
  53. content-type: text/html
  54. funny-head: yesyes
  55. server: nghttpx
  56. via: 1.1 nghttpx
  57. -foo-
  58. {"date":["Tue, 09 Nov 2010 14:49:00 GMT"],
  59. "content-length":["6"],
  60. "content-type":["text/html"],
  61. "funny-head":["yesyes"],
  62. "server":["nghttpx"],
  63. "via":["1.1 nghttpx"]
  64. }
  65. </stdout>
  66. </verify>
  67. </testcase>