test545 748 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. lib545
  21. </tool>
  22. <name>
  23. HTTP POST binary with embedded null using CURLOPT_COPYPOSTFIELDS
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/545
  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 /545 HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. Content-Length: 52
  40. Content-Type: application/x-www-form-urlencoded
  41. This� is test binary data with an embedded NUL byte
  42. </protocol>
  43. </verify>
  44. </testcase>