2
0

test563 919 B

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