Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问怎么设置别的http代理服务器? #153

Closed
design365 opened this issue Apr 18, 2021 · 5 comments
Closed

请问怎么设置别的http代理服务器? #153

design365 opened this issue Apr 18, 2021 · 5 comments

Comments

@design365
Copy link

首先感谢这个项目,我想用这个proxyee去请求一个另外的代理服务器(http、https, 含有用户名和密码验证),代码里怎么设置?

@monkeyWie
Copy link
Owner

设置前置代理就可以了:

new HttpProxyServer()
    .proxyConfig(new ProxyConfig(ProxyType.SOCKS5, "127.0.0.1", 1085))
    .start(9999);

@siwee
Copy link
Contributor

siwee commented Apr 19, 2021

@monkeyWie 大佬,请问有没有办法根据Request设置不同的Proxy呀?我有一个代理IP池,但是对不同的Request有响应的策略,请问改如何实现呀? 有没有思路吗?谢谢

@monkeyWie
Copy link
Owner

@aomsweet 可以的,参考下这个PR:#121
在pipeline里可以动态设置ProxyConfig的

@siwee
Copy link
Contributor

siwee commented Apr 21, 2021

@monkeyWie 谢谢大佬,看起来可行哦,我先试试

@a74559774
Copy link

a74559774 commented Sep 12, 2024

@monkeyWie 大佬,请问有没有办法根据Request设置不同的Proxy呀?我有一个代理IP池,但是对不同的Request有响应的策略,请问改如何实现呀? 有没有思路吗?谢谢

你好,请问针对多个代理IP这个问题有没有demo呀?


@monkeyWie Sir, is there any way to set different Proxy based on Request? I have a proxy IP pool, but there are response strategies for different Requests. How can I implement this? Do you have any ideas? Thanks

Hello, is there any demo for the problem of multiple proxy IPs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants