test1055 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 %LOGDIR/test%TESTNUMBER.txt
  37. </command>
  38. <file name="%LOGDIR/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. Weird
  60. file
  61. to
  62. upload
  63. for
  64. testing
  65. the
  66. PUT
  67. feature
  68. USER anonymous
  69. PASS ftp@example.com
  70. PWD
  71. EPSV
  72. TYPE I
  73. STOR %TESTNUMBER
  74. QUIT
  75. </protocol>
  76. <upload>
  77. Weird
  78. file
  79. to
  80. upload
  81. for
  82. testing
  83. the
  84. PUT
  85. feature
  86. </upload>
  87. </verify>
  88. </testcase>