test3 954 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Server-side
  3. <reply name="1">
  4. <data>
  5. HTTP/1.0 200 OK
  6. Server: test-server/fake
  7. Content-Type: text/html
  8. Content-Length: 0
  9. this is data even though Content-Length is set to zero
  10. </data>
  11. <datacheck>
  12. HTTP/1.0 200 OK
  13. Server: test-server/fake
  14. Content-Type: text/html
  15. Content-Length: 0
  16. </datacheck>
  17. </reply>
  18. #
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP POST with auth and contents but with content-length set to 0
  26. </name>
  27. <command>
  28. -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HOSTPORT/3
  29. </command>
  30. </test>
  31. #
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <strip>
  35. ^User-Agent:.*
  36. </strip>
  37. <protocol nonewline=yes>
  38. POST /3 HTTP/1.1
  39. Authorization: Basic ZmFrZTotdXNlcg==
  40. Host: 127.0.0.1:8999
  41. Pragma: no-cache
  42. Accept: */*
  43. Content-Length: 37
  44. Content-Type: application/x-www-form-urlencoded
  45. fooo=mooo&pooo=clue&doo=%20%20%20++++
  46. </protocol>
  47. </verify>