test544 736 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK swsclose
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 3
  16. OK
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. # tool is what to use instead of 'curl'
  25. <tool>
  26. lib%TESTNUMBER
  27. </tool>
  28. <name>
  29. HTTP POST text data using CURLOPT_COPYPOSTFIELDS
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  33. </command>
  34. </client>
  35. #
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol nonewline="yes">
  39. POST /%TESTNUMBER HTTP/1.1
  40. Host: %HOSTIP:%HTTPPORT
  41. Accept: */*
  42. Content-Length: 4
  43. Content-Type: application/x-www-form-urlencoded
  44. This
  45. </protocol>
  46. </verify>
  47. </testcase>