2
0

test549 940 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. CURLOPT_PROXY_TRANSFER_MODE
  6. CURLOPT_PROXY
  7. HTTP proxy
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 200 OK swsclose
  15. Date: Tue, 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. proxy
  33. </features>
  34. <tool>
  35. lib%TESTNUMBER
  36. </tool>
  37. <name>
  38. FTP RETR over proxy with CURLOPT_PROXY_TRANSFER_MODE
  39. </name>
  40. # first URL then proxy
  41. <command>
  42. ftp://www.example.com/moo/%TESTNUMBER http://%HOSTIP:%HTTPPORT
  43. </command>
  44. </client>
  45. #
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. GET ftp://www.example.com/moo/%TESTNUMBER;type=i HTTP/1.1
  50. Host: www.example.com:21
  51. Accept: */*
  52. Proxy-Connection: Keep-Alive
  53. </protocol>
  54. <stdout>
  55. hello
  56. </stdout>
  57. </verify>
  58. </testcase>