test1090 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. followlocation
  7. chunked Transfer-Encoding
  8. --write-out
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data nocheck="yes">
  15. HTTP/1.1 302 OK swsbounce swsclose
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Content-Length: 8
  18. Connection: close
  19. Content-Type: text/plain
  20. Location: ./%TESTNUMBER0001
  21. monster
  22. </data>
  23. <data1 nocheck="yes">
  24. HTTP/1.1 200 OK
  25. Date: Tue, 09 Nov 2010 14:49:00 GMT
  26. Transfer-Encoding: chunked
  27. Connection: close
  28. Content-Type: text/plain; charset=us-ascii
  29. 0007
  30. bigger
  31. 0008
  32. monster
  33. 0
  34. </data1>
  35. </reply>
  36. #
  37. # Client-side
  38. <client>
  39. <server>
  40. http
  41. </server>
  42. <name>
  43. HTTP GET --write-out with redirected fetch and chunked reply
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <protocol>
  53. GET /%TESTNUMBER HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. GET /%TESTNUMBER0001 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. User-Agent: curl/%VERSION
  60. Accept: */*
  61. </protocol>
  62. <stdout>
  63. HTTP/1.1 302 OK swsbounce swsclose
  64. Date: Tue, 09 Nov 2010 14:49:00 GMT
  65. Content-Length: 8
  66. Connection: close
  67. Content-Type: text/plain
  68. Location: ./%TESTNUMBER0001
  69. HTTP/1.1 200 OK
  70. Date: Tue, 09 Nov 2010 14:49:00 GMT
  71. Transfer-Encoding: chunked
  72. Connection: close
  73. Content-Type: text/plain; charset=us-ascii
  74. bigger monster
  75. 2
  76. 1
  77. 15
  78. http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001
  79. text/plain; charset=us-ascii
  80. 200
  81. </stdout>
  82. </verify>
  83. </testcase>