test208 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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: Tue, 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. proxy
  27. </features>
  28. <name>
  29. HTTP PUT to a FTP URL with username+password - over HTTP proxy
  30. </name>
  31. <command>
  32. -x http://%HOSTIP:%HTTPPORT ftp://daniel:[email protected]/we/want/%TESTNUMBER -T log/test%TESTNUMBER.txt
  33. </command>
  34. <file name="log/test%TESTNUMBER.txt">
  35. Weird
  36. file
  37. to
  38. upload
  39. for
  40. testing
  41. the
  42. PUT
  43. feature
  44. </file>
  45. </client>
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. PUT ftp://daniel:[email protected]/we/want/%TESTNUMBER HTTP/1.1
  50. Host: host.com:21
  51. Authorization: Basic ZGFuaWVsOm15c2VjcmV0
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. Proxy-Connection: Keep-Alive
  55. Content-Length: 78
  56. Expect: 100-continue
  57. Weird
  58. file
  59. to
  60. upload
  61. for
  62. testing
  63. the
  64. PUT
  65. feature
  66. </protocol>
  67. </verify>
  68. </testcase>