| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | HTTP | 
 | 5 | HTTP proxy | 
 | 6 | </keywords> | 
 | 7 | </info> | 
 | 8 |  | 
 | 9 | # | 
 | 10 | # Server-side | 
 | 11 | <reply> | 
 | 12 | <connect> | 
 | 13 | HTTP/1.1 503 no just no | 
 | 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
 | 15 | Server: test-server/fake | 
 | 16 | Accept-Ranges: bytes | 
 | 17 | Content-Length: 6 | 
 | 18 | Connection: close | 
 | 19 |  | 
 | 20 | -foo- | 
 | 21 | </connect> | 
 | 22 | </reply> | 
 | 23 |  | 
 | 24 | # | 
 | 25 | # Client-side | 
 | 26 | <client> | 
 | 27 | <features> | 
 | 28 | gopher | 
 | 29 | dict | 
 | 30 | http | 
 | 31 | ftp | 
 | 32 | imap | 
 | 33 | ldap | 
 | 34 | mqtt | 
 | 35 | pop3 | 
 | 36 | rtsp | 
 | 37 | scp | 
 | 38 | sftp | 
 | 39 | smb | 
 | 40 | smtp | 
 | 41 | </features> | 
 | 42 | <server> | 
 | 43 | http-proxy | 
 | 44 | </server> | 
 | 45 |  <name> | 
 | 46 | Refuse tunneling protocols through HTTP proxy | 
 | 47 |  </name> | 
 | 48 |  <command> | 
 | 49 | -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 | 
 | 50 | </command> | 
 | 51 | </client> | 
 | 52 |  | 
 | 53 | # | 
 | 54 | # Verify data after the test has been "shot" | 
 | 55 | <verify> | 
 | 56 | # refused in the CONNECT | 
 | 57 | <errorcode> | 
 | 58 | 56 | 
 | 59 | </errorcode> | 
 | 60 | </verify> | 
 | 61 | </testcase> |