test1064 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 -T log/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002.upload2
  35. </command>
  36. <file name="log/%TESTNUMBER">
  37. test
  38. </file>
  39. </client>
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. PUT /%TESTNUMBER.upload1 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. Content-Length: 5
  48. test
  49. PUT /%TESTNUMBER0002.upload2 HTTP/1.1
  50. Host: %HOSTIP:%HTTPPORT
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. Content-Length: 5
  54. test
  55. </protocol>
  56. <stdout>
  57. HTTP/1.1 200 A OK
  58. Server: curl test
  59. Content-Type: text/html; charset=iso-8859-1
  60. Content-Length: 3
  61. ok
  62. HTTP/1.1 200 A OK
  63. Server: curl test
  64. Content-Type: text/html; charset=iso-8859-1
  65. Content-Length: 9
  66. still ok
  67. </stdout>
  68. </verify>
  69. </testcase>