test563 878 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. <server>
  23. ftp
  24. http
  25. </server>
  26. <tool>
  27. lib562
  28. </tool>
  29. <name>
  30. FTP type=A URL and CURLOPT_PORT set and proxy
  31. </name>
  32. <setenv>
  33. ftp_proxy=http://%HOSTIP:%HTTPPORT/
  34. </setenv>
  35. # note that we need quotes around the URL below to make sure the shell doesn't
  36. # treat the semicolon as a separator!
  37. <command>
  38. "ftp://%HOSTIP:23456/563;type=A" %FTPPORT
  39. </command>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. GET FTP://%HOSTIP:%FTPPORT/563;type=A HTTP/1.1
  45. Host: %HOSTIP:%FTPPORT
  46. Accept: */*
  47. Proxy-Connection: Keep-Alive
  48. </protocol>
  49. </verify>
  50. </testcase>