test1098 1.0 KB

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: Tue, 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. proxy
  29. </features>
  30. <name>
  31. FTP RETR twice over proxy confirming persistent connection
  32. </name>
  33. <command>
  34. ftp://ftp-site/moo/%TESTNUMBER ftp://ftp-site/moo/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. GET ftp://ftp-site/moo/%TESTNUMBER HTTP/1.1
  42. Host: ftp-site:21
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. Proxy-Connection: Keep-Alive
  46. GET ftp://ftp-site/moo/%TESTNUMBER HTTP/1.1
  47. Host: ftp-site:21
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. Proxy-Connection: Keep-Alive
  51. </protocol>
  52. <stdout>
  53. HTTP/1.1 200 OK
  54. Date: Tue, 09 Nov 2010 14:49:00 GMT
  55. Content-Length: 6
  56. hello
  57. HTTP/1.1 200 OK
  58. Date: Tue, 09 Nov 2010 14:49:00 GMT
  59. Content-Length: 6
  60. hello
  61. </stdout>
  62. </verify>
  63. </testcase>