test1801 933 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP/2
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 101 Switching!
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. Content-Length: 6
  17. Content-Type: text/html
  18. lies!
  19. </data>
  20. <datacheck>
  21. HTTP/1.1 101 Switching!
  22. </datacheck>
  23. # listen to the upgrade request!
  24. <servercmd>
  25. upgrade
  26. </servercmd>
  27. </reply>
  28. # Client-side
  29. <client>
  30. <server>
  31. http
  32. </server>
  33. <features>
  34. http/2
  35. </features>
  36. <name>
  37. HTTP/2 upgrade with lying server
  38. </name>
  39. <command>
  40. http://%HOSTIP:%HTTPPORT/1801 --http2
  41. </command>
  42. </client>
  43. <verify>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. GET /1801 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. Connection: Upgrade, HTTP2-Settings
  52. Upgrade: %H2CVER
  53. HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
  54. </protocol>
  55. # CURLE_HTTP2: Send failure: Broken pipe
  56. <errorcode>
  57. 16
  58. </errorcode>
  59. </verify>
  60. </testcase>