test1059 839 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP CONNECT
  6. proxytunnel
  7. FTP
  8. FAILURE
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <connect>
  15. HTTP/1.1 501 Method not implemented swsclose
  16. Date: Thu, 09 Nov 2010 14:49:00 GMT
  17. Connection: close
  18. Content-Length: 0
  19. </connect>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <features>
  25. ftp
  26. </features>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP CONNECT with proxytunnel to unsupported FTP URL
  32. </name>
  33. <command>
  34. ftp://test-number:1059/wanted/page -p -x %HOSTIP:%HTTPPORT
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. # The server doesn't implement CONNECT for ftp, so this must be a failure test
  41. <errorcode>
  42. 56
  43. </errorcode>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. CONNECT test-number:1059 HTTP/1.1
  49. Host: test-number:1059
  50. Proxy-Connection: Keep-Alive
  51. </protocol>
  52. </verify>
  53. </testcase>