test60 743 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.0 200 OK swsclose
  5. Date: Thu, 09 Nov 2010 14:49:00 GMT
  6. Server: test-server/fake
  7. blablabla
  8. </data>
  9. </reply>
  10. # Client-side
  11. <client>
  12. <server>
  13. http
  14. </server>
  15. <name>
  16. HTTP PUT from stdin with wrong content-length
  17. </name>
  18. <command>
  19. http://%HOSTIP:%HOSTPORT/bzz/60 -T - -H "Content-Length: 1" < log/60.txt
  20. </command>
  21. <file name="log/60.txt">
  22. more than one byte
  23. </file>
  24. </client>
  25. # Verify data after the test has been "shot"
  26. <verify>
  27. <strip>
  28. ^User-Agent:.*
  29. </strip>
  30. <protocol>
  31. PUT /bzz/60 HTTP/1.1
  32. Host: 127.0.0.1:8999
  33. Pragma: no-cache
  34. Accept: */*
  35. Transfer-Encoding: chunked
  36. Content-Length: 1
  37. Expect: 100-continue
  38. 13
  39. more than one byte
  40. 0
  41. </protocol>
  42. </verify>