test510 790 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. <data mode="text">
  6. HTTP/1.1 200 OK
  7. Date: Thu, 09 Nov 2010 14:49:00 GMT
  8. Server: test-server/fake swsclose
  9. Connection: close
  10. Content-Type: text/html
  11. hello
  12. </data>
  13. </reply>
  14. # Client-side
  15. <client>
  16. <server>
  17. http
  18. </server>
  19. # tool is what to use instead of 'curl'
  20. <tool>
  21. lib510
  22. </tool>
  23. <name>
  24. send HTTP POST using read callback, using chunked transfer-encoding
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/510
  28. </command>
  29. </client>
  30. #
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <protocol>
  34. POST /510 HTTP/1.1
  35. Host: %HOSTIP:%HTTPPORT
  36. Accept: */*
  37. Transfer-Encoding: chunked
  38. Content-Type: application/x-www-form-urlencoded
  39. Expect: 100-continue
  40. 3
  41. one
  42. 3
  43. two
  44. 5
  45. three
  46. 1d
  47. and a final longer crap: four
  48. 0
  49. </protocol>
  50. </verify>
  51. </testcase>