test1059 861 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: Tue, 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. proxy
  27. </features>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP CONNECT with proxytunnel to unsupported FTP URL
  33. </name>
  34. <command>
  35. ftp://test-number:%TESTNUMBER/wanted/page -p -x %HOSTIP:%HTTPPORT
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. # The server doesn't implement CONNECT for ftp, so this must be a failure test
  42. <errorcode>
  43. 56
  44. </errorcode>
  45. <protocol>
  46. CONNECT test-number:%TESTNUMBER HTTP/1.1
  47. Host: test-number:%TESTNUMBER
  48. User-Agent: curl/%VERSION
  49. Proxy-Connection: Keep-Alive
  50. </protocol>
  51. </verify>
  52. </testcase>