test545 822 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 binary with embedded zero and no trailing zero
  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. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol nonewline="yes">
  42. POST /%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Accept: */*
  45. Content-Length: 46
  46. Content-Type: application/x-www-form-urlencoded
  47. This� is test binary data with an embedded NUL
  48. </protocol>
  49. </verify>
  50. </testcase>