test2500 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP/3
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes" crlf="yes">
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. Accept-Ranges: bytes
  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. http/3
  30. nghttpx-h3
  31. </features>
  32. <server>
  33. http
  34. http/3
  35. </server>
  36. <name>
  37. HTTP/3 GET:
  38. </name>
  39. <command>
  40. --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --http3 --resolve localhost:%HTTP3PORT:%HOSTIP https://localhost:%HTTP3PORT/%TESTNUMBER
  41. </command>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <strip>
  47. ^X-Forwarded-Proto:.*
  48. ^Via:.*
  49. </strip>
  50. <protocol crlf="yes">
  51. GET https://localhost:%HTTP3PORT/%TESTNUMBER HTTP/1.1
  52. Host: localhost:%HTTP3PORT
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. </protocol>
  56. <stdout crlf="yes">
  57. HTTP/3 200
  58. date: Tue, 09 Nov 2010 14:49:00 GMT
  59. last-modified: Tue, 13 Jun 2000 12:10:00 GMT
  60. etag: "21025-dc7-39462498"
  61. accept-ranges: bytes
  62. content-length: 6
  63. content-type: text/html
  64. funny-head: yesyes
  65. via: 1.1 nghttpx
  66. -foo-
  67. </stdout>
  68. <stripfile>
  69. s/^server: nghttpx.*\r?\n//
  70. </stripfile>
  71. </verify>
  72. </testcase>