test1591 926 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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: Tue, 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. lib%TESTNUMBER
  31. </tool>
  32. <command>
  33. http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER
  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. <protocol>
  42. PUT /bzz/%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Accept: */*
  45. Transfer-Encoding: chunked
  46. Trailer: my-super-awesome-trailer, my-other-awesome-trailer
  47. Expect: 100-continue
  48. %if hyper
  49. E
  50. %else
  51. e
  52. %endif
  53. Hello Cloud!
  54. 0
  55. my-super-awesome-trailer: trail1
  56. my-other-awesome-trailer: trail2
  57. </protocol>
  58. </verify>
  59. </testcase>