test1068 719 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. # Similar to test 60
  3. <info>
  4. <keywords>
  5. HTTP
  6. HTTP PUT
  7. chunked Transfer-Encoding
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.0 200 OK swsclose
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. blablabla
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP PUT from stdin
  26. </name>
  27. <command>
  28. http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER -T -
  29. </command>
  30. <stdin>
  31. more than one byte
  32. </stdin>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. PUT /bzz/%TESTNUMBER HTTP/1.1
  38. Host: %HOSTIP:%HTTPPORT
  39. User-Agent: curl/%VERSION
  40. Accept: */*
  41. Transfer-Encoding: chunked
  42. Expect: 100-continue
  43. 13
  44. more than one byte
  45. 0
  46. </protocol>
  47. </verify>
  48. </testcase>