monkeyWie / proxyee

HTTP proxy server,support HTTPS&websocket.MITM impl,intercept and tamper HTTPS traffic.
MIT License
1.52k stars 572 forks source link

能否支持ftp over http proxy #200

Open honwhy opened 2 years ago

honwhy commented 2 years ago

I have forked your project, and now I'm doing some testing Test Code

    @Test
    public void test_over_http_proxy() throws IOException {
        FTPHTTPClient client = new FTPHTTPClient("127.0.0.1", proxyPort);
        //client.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", proxyPort)));
        client.setConnectTimeout(3000);
        client.connect("127.0.0.1", ftpPort);
        client.getReplyCode();
        Assert.assertTrue(client.isConnected());
        client.disconnect();
    }

maven

        <dependency>
            <groupId>commons-net</groupId>
            <artifactId>commons-net</artifactId>
            <version>3.6</version>
        </dependency>

我debug跟踪了下,connect请求有正确处理的,但是没有见到流量转发请求

monkeyWie commented 2 years ago

实现的是标准的http代理协议,应该是支持的啊