test2401 958 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP/2
  7. HTTPS
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 201 OK
  15. Date: Tue, 09 Nov 2010 14:49:00 GMT
  16. Connection: close
  17. Content-Length: 0
  18. Funny-head: yesyes
  19. </data>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <features>
  25. debug
  26. h2c
  27. SSL
  28. </features>
  29. <server>
  30. http
  31. http/2
  32. </server>
  33. <name>
  34. HTTP/2 GET
  35. </name>
  36. <setenv>
  37. </setenv>
  38. <command>
  39. -k --http2 "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER" -d "moo"
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <stdout>
  46. HTTP/2 201
  47. date: Tue, 09 Nov 2010 14:49:00 GMT
  48. content-length: 0
  49. funny-head: yesyes
  50. server: nghttpx
  51. via: 1.1 nghttpx
  52. </stdout>
  53. <protocol nonewline="yes">
  54. POST /2401 HTTP/1.1
  55. Host: %HOSTIP:%HTTP2TLSPORT
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. Content-Length: 3
  59. Content-Type: application/x-www-form-urlencoded
  60. X-Forwarded-Proto: https
  61. Via: 2 nghttpx
  62. moo
  63. </protocol>
  64. </verify>
  65. </testcase>