test1106 783 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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: Tue, 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. proxy
  25. </features>
  26. <server>
  27. http
  28. </server>
  29. <name>
  30. FTP URL and with ftp_proxy environment variable set
  31. </name>
  32. <setenv>
  33. ftp_proxy=http://%HOSTIP:%HTTPPORT/
  34. </setenv>
  35. <command>
  36. ftp://%HOSTIP:23456/%TESTNUMBER
  37. </command>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET ftp://%HOSTIP:23456/%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:23456
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. </protocol>
  48. </verify>
  49. </testcase>