test510 912 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. chunked Transfer-Encoding
  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 swsclose
  16. Connection: close
  17. Content-Type: text/html
  18. hello
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. # tool is what to use instead of 'curl'
  27. <tool>
  28. lib%TESTNUMBER
  29. </tool>
  30. <name>
  31. send HTTP POST using read callback, using chunked transfer-encoding
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. POST /%TESTNUMBER HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. Accept: */*
  44. Transfer-Encoding: chunked
  45. Content-Type: application/x-www-form-urlencoded
  46. Expect: 100-continue
  47. 3
  48. one
  49. 3
  50. two
  51. 5
  52. three
  53. %if hyper
  54. 1D
  55. %else
  56. 1d
  57. %endif
  58. and a final longer crap: four
  59. 0
  60. </protocol>
  61. </verify>
  62. </testcase>