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

使用node request模块设置anyproxy代理地址时,提示[internal https]proxy server #583

Open
foodmade opened this issue Apr 6, 2021 · 3 comments

Comments

@foodmade
Copy link

foodmade commented Apr 6, 2021

使用平台:Windows

Anyproxy版本:4.1.3

期望结果:anyproxy规则文件中,能正常解析请求地址

Anyproxy实际结果:
[AnyProxy Log][2021-04-06 15:16:34]: received https CONNECT request www.baidu.com
[AnyProxy Log][2021-04-06 15:16:34]: will forward to local https server
[AnyProxy Log][2021-04-06 15:16:34]: [internal https]proxy server for www.baidu.com established

备注:我使用的是node request模块代理请求,代码片段如下
image

Anyproxy日志如下
image

@foodmade
Copy link
Author

foodmade commented Apr 6, 2021

我要怎么设置request参数,才能让Anyproxy能正常代理我的请求,我这儿说的正常代理是指能够进入我的rule逻辑,获取对应的请求头等参数

@foodmade
Copy link
Author

foodmade commented Apr 6, 2021

现在的现象是,只要打印了这个 [internal https]proxy server 日志,将不会执行我的rule逻辑。跪求解答,被这个问题困扰好多天啦~

@foodmade
Copy link
Author

foodmade commented Apr 6, 2021

已经解决了,需要在request请求参数里添加如下参数:

requestCert:true
rejectUnauthorized:false

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

1 participant