test1077 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. HTTP
  6. HTTP/1.0
  7. HTTP GET
  8. HTTP proxy
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.0 200 OK
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake
  18. Content-Type: text/plain
  19. Content-Length: 9
  20. Funny-head: yesyes
  21. Proxy-Connection: Keep-Alive
  22. contents
  23. </data>
  24. <data2>
  25. HTTP/1.0 200 OK
  26. Date: Tue, 09 Nov 2010 14:49:00 GMT
  27. Server: test-server/fake
  28. Content-Type: text/plain
  29. Content-Length: 9
  30. Funny-head: yesyes
  31. Proxy-Connection: Keep-Alive
  32. contents
  33. </data2>
  34. </reply>
  35. #
  36. # Client-side
  37. <client>
  38. <server>
  39. http
  40. </server>
  41. <features>
  42. ftp
  43. proxy
  44. </features>
  45. <name>
  46. FTP over HTTP proxy with downgrade to HTTP 1.0
  47. </name>
  48. <command>
  49. -x %HOSTIP:%HTTPPORT ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER0002
  50. </command>
  51. </client>
  52. #
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <protocol>
  56. GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. User-Agent: curl/%VERSION
  59. Accept: */*
  60. Proxy-Connection: Keep-Alive
  61. GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER0002 HTTP/1.0
  62. Host: %HOSTIP:%HTTPPORT
  63. User-Agent: curl/%VERSION
  64. Accept: */*
  65. Proxy-Connection: Keep-Alive
  66. </protocol>
  67. </verify>
  68. </testcase>