test1106 771 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. CURLOPT_PORT
  6. HTTP proxy
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK swsclose
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Accept-Ranges: bytes
  16. Content-Length: 6
  17. hello
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <features>
  23. ftp
  24. </features>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. FTP URL and with ftp_proxy environment variable set
  30. </name>
  31. <setenv>
  32. ftp_proxy=http://%HOSTIP:%HTTPPORT/
  33. </setenv>
  34. <command>
  35. ftp://%HOSTIP:23456/1106
  36. </command>
  37. </client>
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strip>
  41. ^User-Agent:.*
  42. </strip>
  43. <protocol>
  44. GET ftp://%HOSTIP:23456/1106 HTTP/1.1
  45. Host: %HOSTIP:23456
  46. Accept: */*
  47. Proxy-Connection: Keep-Alive
  48. </protocol>
  49. </verify>
  50. </testcase>