test510 786 B

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