-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
throught this package , i am able to hook https request . but can i use request package to send a request through an existing proxy server?
based on your demo code:
var mitmproxy = require('node-mitmproxy');
mitmproxy.createProxy({
sslConnectInterceptor: (req, cltSocket, head) => true,
requestInterceptor: (rOptions, req, res, ssl, next) => {
console.log(`正在访问:${rOptions.protocol}//${rOptions.hostname}:${rOptions.port}`);
console.log('cookie:', rOptions.headers.cookie);
res.end('Hello node-mitmproxy!');
next();
},
responseInterceptor: (req, res, proxyReq, proxyRes, ssl, next) => {
next();
}
});Metadata
Metadata
Assignees
Labels
No labels