test445 894 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP proxy
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <connect>
  12. HTTP/1.1 503 no just no
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Accept-Ranges: bytes
  16. Content-Length: 6
  17. Connection: close
  18. -foo-
  19. </connect>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <features>
  25. gopher
  26. dict
  27. http
  28. ftp
  29. imap
  30. ldap
  31. mqtt
  32. pop3
  33. rtsp
  34. scp
  35. sftp
  36. smb
  37. smtp
  38. </features>
  39. <server>
  40. http-proxy
  41. </server>
  42. <name>
  43. Refuse tunneling protocols through HTTP proxy
  44. </name>
  45. <command>
  46. -x http://%HOSTIP:%PROXYPORT/%TESTNUMBER -p gopher://127.0.0.1 dict://127.0.0.1 http://moo https://example telnet://another ftp://yes ftps://again imap://more ldap://perhaps mqtt://yes pop3://mail rtsp://harder scp://copy sftp://files smb://wird smtp://send
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. # refused in the CONNECT
  53. <errorcode>
  54. 56
  55. </errorcode>
  56. </verify>
  57. </testcase>