test1068 725 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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: Thu, 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/1068 -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. <strip>
  37. ^User-Agent:.*
  38. </strip>
  39. <protocol>
  40. PUT /bzz/1068 HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Accept: */*
  43. Transfer-Encoding: chunked
  44. Expect: 100-continue
  45. 13
  46. more than one byte
  47. 0
  48. </protocol>
  49. </verify>
  50. </testcase>