test1591 897 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. CURLOPT_HTTPTRAILER_FUNCTION
  7. CURLOPT_HTTPTRAILER_DATA
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.0 200 OK swsclose
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <features>
  21. HTTP
  22. </features>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP PUT with trailers at the end
  28. </name>
  29. <tool>
  30. lib1591
  31. </tool>
  32. <command>
  33. http://%HOSTIP:%HTTPPORT/bzz/1591
  34. </command>
  35. <stdin>
  36. more than one byte
  37. </stdin>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <strip>
  42. ^User-Agent:.*
  43. </strip>
  44. <protocol>
  45. PUT /bzz/1591 HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. Transfer-Encoding: chunked
  49. Trailer: my-super-awesome-trailer, my-other-awesome-trailer
  50. Expect: 100-continue
  51. e
  52. Hello Cloud!
  53. 0
  54. my-super-awesome-trailer: trail1
  55. my-other-awesome-trailer: trail2
  56. </protocol>
  57. </verify>
  58. </testcase>