test510 864 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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: Thu, 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. lib510
  29. </tool>
  30. <name>
  31. send HTTP POST using read callback, using chunked transfer-encoding
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/510
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. POST /510 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. 1d
  54. and a final longer crap: four
  55. 0
  56. </protocol>
  57. </verify>
  58. </testcase>