https请求不能重定向到上游代理服务器
- Dominant language
- JavaScript
- Stars
- 7.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Plese fill the template when you reporting a new issue, thanks!
#### Which platform are you running AnyProxy
Mac
#### The version of the AnyProxy
4.0.14
#### Your expected behavior of AnyProxy
https的请求也可以像http请求一样,使用下一级的代理服务器
#### The actual behavior of AnyProxy
报错
#### The log of the error
`module.exports = {
*beforeSendRequest(requestDetail) {
//requestDetail.protocol
const newRequestOptions = requestDetail.requestOptions;
requestDetail.protocol = 'http';
newRequestOptions.hostname = '代理服务器IP';
newRequestOptions.port = ‘代理服务器端口’;
newRequestOptions.path = requestDetail.url ;
console.log('newRequestOptions', requestDetail.protocol);
return requestDetail;
},
*beforeDealHttpsRequest(requestDetail) {
return true;
},
// https连接服务器出错
*onConnectError(requestDetail, error) {
console.log('error', error);
}
};`
报错 =======>
`该网页无法正常运作 www.jianshu.com 将您重定向的次数过多。
尝试清除 Cookie.
ERR_TOO_MANY_REDIRECTS`
#431
#409
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the HTTPS request on macOS with AnyProxy 4.0.14 using the shown beforeSendRequest and beforeDealHttpsRequest hooks, and inspect the onConnectError output. Trace how HTTPS requests are forwarded to the upstream proxy compared with HTTP requests. Done means HTTPS requests can use the next-level proxy without producing an ERR_TOO_MANY_REDIRECTS error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100