test508 725 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. lib508
  21. </tool>
  22. <name>
  23. send HTTP POST using read callback
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HOSTPORT/508
  27. </command>
  28. </client>
  29. #
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <protocol>
  33. POST /508 HTTP/1.1
  34. Host: 127.0.0.1:8999
  35. Pragma: no-cache
  36. Accept: */*
  37. Content-Length: 45
  38. Content-Type: application/x-www-form-urlencoded
  39. this is what we post to the silly web server
  40. </protocol>
  41. </verify>