test550 966 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. HTTP proxy
  6. CURLOPT_PROXY_TRANSFER_MODE
  7. CURLOPT_PROXY
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 200 OK swsclose
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake
  17. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  18. ETag: "21025-dc7-39462498"
  19. Accept-Ranges: bytes
  20. Content-Length: 6
  21. hello
  22. </data>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <features>
  31. ftp
  32. </features>
  33. <tool>
  34. lib549
  35. </tool>
  36. <name>
  37. FTP RETR over proxy with CURLOPT_PROXY_TRANSFER_MODE and ASCII transfer
  38. </name>
  39. # first URL then proxy
  40. <command>
  41. ftp://www.example.com/moo/550 http://%HOSTIP:%HTTPPORT ascii
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <strip>
  48. ^User-Agent:.*
  49. </strip>
  50. <protocol>
  51. GET ftp://www.example.com/moo/550;type=a HTTP/1.1
  52. Host: www.example.com:21
  53. Accept: */*
  54. Proxy-Connection: Keep-Alive
  55. </protocol>
  56. <stdout>
  57. hello
  58. </stdout>
  59. </verify>
  60. </testcase>