test508 877 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. lib508
  22. </tool>
  23. <name>
  24. send HTTP POST using read callback
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/508
  28. </command>
  29. </client>
  30. #
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <strippart>
  34. # remove CR that CURLOPT_TRANSFERTEXT added, when CharConv enabled:
  35. s/^(this is what we post to the silly web server)\r\n/$1\n/ if($has_charconv)
  36. </strippart>
  37. <protocol>
  38. POST /508 HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. Accept: */*
  41. Content-Length: 45
  42. Content-Type: application/x-www-form-urlencoded
  43. this is what we post to the silly web server
  44. </protocol>
  45. </verify>
  46. </testcase>