test1064 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. </keywords>
  7. </info>
  8. <reply>
  9. <data nocheck="yes">
  10. HTTP/1.1 200 A OK
  11. Server: curl test
  12. Content-Type: text/html; charset=iso-8859-1
  13. Content-Length: 3
  14. ok
  15. </data>
  16. <data2 nocheck="yes">
  17. HTTP/1.1 200 A OK
  18. Server: curl test
  19. Content-Type: text/html; charset=iso-8859-1
  20. Content-Length: 9
  21. still ok
  22. </data2>
  23. </reply>
  24. # Client-side
  25. <client>
  26. #
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP PUT twice
  32. </name>
  33. <command>
  34. -H "Expect:" -T log/1064 http://%HOSTIP:%HTTPPORT/1064.upload1 -T log/1064 http://%HOSTIP:%HTTPPORT/10640002.upload2
  35. </command>
  36. <file name="log/1064">
  37. test
  38. </file>
  39. </client>
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <strip>
  43. ^User-Agent:.*
  44. </strip>
  45. <protocol>
  46. PUT /1064.upload1 HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. Content-Length: 5
  50. test
  51. PUT /10640002.upload2 HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. Accept: */*
  54. Content-Length: 5
  55. test
  56. </protocol>
  57. <stdout>
  58. HTTP/1.1 200 A OK
  59. Server: curl test
  60. Content-Type: text/html; charset=iso-8859-1
  61. Content-Length: 3
  62. ok
  63. HTTP/1.1 200 A OK
  64. Server: curl test
  65. Content-Type: text/html; charset=iso-8859-1
  66. Content-Length: 9
  67. still ok
  68. </stdout>
  69. </verify>
  70. </testcase>