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: Thu, 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: Thu, 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. </features>
  44. <name>
  45. FTP over HTTP proxy with downgrade to HTTP 1.0
  46. </name>
  47. <command>
  48. -x %HOSTIP:%HTTPPORT ftp://%HOSTIP:%HTTPPORT/we/want/that/page/1077 ftp://%HOSTIP:%HTTPPORT/we/want/that/page/10770002
  49. </command>
  50. </client>
  51. #
  52. # Verify data after the test has been "shot"
  53. <verify>
  54. <strip>
  55. ^User-Agent:.*
  56. </strip>
  57. <protocol>
  58. GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/1077 HTTP/1.1
  59. Host: %HOSTIP:%HTTPPORT
  60. Accept: */*
  61. Proxy-Connection: Keep-Alive
  62. GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/10770002 HTTP/1.0
  63. Host: %HOSTIP:%HTTPPORT
  64. Accept: */*
  65. Proxy-Connection: Keep-Alive
  66. </protocol>
  67. </verify>
  68. </testcase>