test561 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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: Tue, 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. proxy
  34. </features>
  35. <tool>
  36. lib549
  37. </tool>
  38. <name>
  39. FTP RETR with CURLOPT_PROXY_TRANSFER_MODE, ASCII transfer and type=i
  40. </name>
  41. # first URL then proxy
  42. <command>
  43. "ftp://www.example.com/moo/%TESTNUMBER;type=i" http://%HOSTIP:%HTTPPORT ascii
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <protocol>
  50. GET ftp://www.example.com/moo/%TESTNUMBER;type=i HTTP/1.1
  51. Host: www.example.com:21
  52. Accept: */*
  53. Proxy-Connection: Keep-Alive
  54. </protocol>
  55. <stdout>
  56. hello
  57. </stdout>
  58. </verify>
  59. </testcase>