test1098 1014 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. HTTP proxy
  6. CURLOPT_PROXY
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Content-Length: 6
  16. hello
  17. </data>
  18. </reply>
  19. #
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <features>
  26. http
  27. ftp
  28. </features>
  29. <name>
  30. FTP RETR twice over proxy confirming persistent connection
  31. </name>
  32. <command>
  33. ftp://ftp-site/moo/1098 ftp://ftp-site/moo/1098 --proxy http://%HOSTIP:%HTTPPORT
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. GET ftp://ftp-site/moo/1098 HTTP/1.1
  44. Host: ftp-site:21
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. GET ftp://ftp-site/moo/1098 HTTP/1.1
  48. Host: ftp-site:21
  49. Accept: */*
  50. Proxy-Connection: Keep-Alive
  51. </protocol>
  52. <stdout mode="text">
  53. HTTP/1.1 200 OK
  54. Date: Thu, 09 Nov 2010 14:49:00 GMT
  55. Content-Length: 6
  56. hello
  57. HTTP/1.1 200 OK
  58. Date: Thu, 09 Nov 2010 14:49:00 GMT
  59. Content-Length: 6
  60. hello
  61. </stdout>
  62. </verify>
  63. </testcase>