test208 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. HTTP
  6. HTTP PUT
  7. HTTP proxy
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.0 200 OK swsclose
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. blablabla
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <features>
  25. ftp
  26. </features>
  27. <name>
  28. HTTP PUT to a FTP URL with username+password - over HTTP proxy
  29. </name>
  30. <command>
  31. -x http://%HOSTIP:%HTTPPORT ftp://daniel:mysecret@host.com/we/want/208 -T log/test208.txt
  32. </command>
  33. <file name="log/test208.txt">
  34. Weird
  35. file
  36. to
  37. upload
  38. for
  39. testing
  40. the
  41. PUT
  42. feature
  43. </file>
  44. </client>
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <strip>
  48. ^User-Agent:.*
  49. </strip>
  50. <protocol>
  51. PUT ftp://daniel:mysecret@host.com/we/want/208 HTTP/1.1
  52. Authorization: Basic ZGFuaWVsOm15c2VjcmV0
  53. Host: host.com:21
  54. Accept: */*
  55. Proxy-Connection: Keep-Alive
  56. Content-Length: 78
  57. Expect: 100-continue
  58. Weird
  59. file
  60. to
  61. upload
  62. for
  63. testing
  64. the
  65. PUT
  66. feature
  67. </protocol>
  68. </verify>
  69. </testcase>