test365 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Chunked
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 123456
  17. Transfer-Encoding: chunked
  18. Content-Type: text/html
  19. Funny-head: yesyes
  20. 10
  21. chunked data fun
  22. 0
  23. </data>
  24. <datacheck nonewline="yes">
  25. HTTP/1.1 200 OK
  26. Date: Tue, 09 Nov 2010 14:49:00 GMT
  27. Server: test-server/fake
  28. Content-Length: 123456
  29. Transfer-Encoding: chunked
  30. Content-Type: text/html
  31. Funny-head: yesyes
  32. chunked data fun
  33. </datacheck>
  34. </reply>
  35. #
  36. # Client-side
  37. <client>
  38. <server>
  39. http
  40. </server>
  41. <name>
  42. HTTP/1.1 with chunked AND Content-Length headers
  43. </name>
  44. <command>
  45. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  46. </command>
  47. </client>
  48. #
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <protocol>
  52. GET /%TESTNUMBER HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. User-Agent: curl/%VERSION
  55. Accept: */*
  56. </protocol>
  57. </verify>
  58. </testcase>