test1055 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. followlocation
  7. FTP
  8. EPSV
  9. STOR
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <data>
  16. HTTP/1.1 307 OK
  17. Date: Tue, 09 Nov 2010 14:49:00 GMT
  18. Server: test-server/fake swsclose
  19. Content-Type: text/html
  20. Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
  21. Content-Length: 0
  22. Connection: close
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. ftp
  31. </server>
  32. <name>
  33. HTTP PUT Location: redirect to FTP URL
  34. </name>
  35. <command>
  36. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -L -T log/test%TESTNUMBER.txt
  37. </command>
  38. <file name="log/test%TESTNUMBER.txt">
  39. Weird
  40. file
  41. to
  42. upload
  43. for
  44. testing
  45. the
  46. PUT
  47. feature
  48. </file>
  49. </client>
  50. #
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <protocol>
  54. PUT /%TESTNUMBER HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. Content-Length: 78
  59. Expect: 100-continue
  60. Weird
  61. file
  62. to
  63. upload
  64. for
  65. testing
  66. the
  67. PUT
  68. feature
  69. USER anonymous
  70. PASS [email protected]
  71. PWD
  72. EPSV
  73. TYPE I
  74. STOR %TESTNUMBER
  75. QUIT
  76. </protocol>
  77. <upload>
  78. Weird
  79. file
  80. to
  81. upload
  82. for
  83. testing
  84. the
  85. PUT
  86. feature
  87. </upload>
  88. </verify>
  89. </testcase>