2
0

test561 982 B

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