test1065 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. HTTP GET
  7. </keywords>
  8. </info>
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 A OK
  12. Server: curl test
  13. Content-Type: text/html; charset=iso-8859-1
  14. Content-Length: 3
  15. ok
  16. </data>
  17. <data2 nocheck="yes">
  18. HTTP/1.1 200 A OK
  19. Server: curl test
  20. Content-Type: text/html; charset=iso-8859-1
  21. Content-Length: 9
  22. still ok
  23. </data2>
  24. </reply>
  25. # Client-side
  26. <client>
  27. #
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP PUT with one file but two URLs
  33. </name>
  34. <command>
  35. -H "Expect:" -T log/1065 http://%HOSTIP:%HTTPPORT/1065.upload1 http://%HOSTIP:%HTTPPORT/10650002.url2
  36. </command>
  37. <file name="log/1065">
  38. test
  39. </file>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <strip>
  44. ^User-Agent:.*
  45. </strip>
  46. <protocol>
  47. PUT /1065.upload1 HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. Accept: */*
  50. Content-Length: 5
  51. test
  52. GET /10650002.url2 HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. Accept: */*
  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>