test515 691 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. <data mode="text">
  6. HTTP/1.1 200 OK swsclose
  7. Date: Thu, 09 Nov 2010 14:49:00 GMT
  8. Server: test-server/fake
  9. Content-Length: 3
  10. OK
  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. lib515
  21. </tool>
  22. <name>
  23. make a POSTFIELDS set to NULL with POSTFIELDSIZE set to zero
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/515
  27. </command>
  28. </client>
  29. #
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <strip>
  33. ^User-Agent:.*
  34. </strip>
  35. <protocol>
  36. POST /515 HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. Content-Length: 0
  40. Content-Type: application/x-www-form-urlencoded
  41. </protocol>
  42. </verify>
  43. </testcase>