node-http-mitm-proxy
node-http-mitm-proxy copied to clipboard
Usage Question: Intercepting and re-directing the call by changing the path
Hi - First thanks for making a great software.
In my use case I am trying to intercept the call made to walmart.com and redirect it to one of it's item page however I see that the page is shown blank on browser.
if (ctx.clientToProxyRequest.headers.host === 'www.walmart.com' && ctx.clientToProxyRequest.url.indexOf('/') == 0) {
ctx.proxyToServerRequestOptions.path = '/ip/Iceberg-Swiss-Men-s-3-in-1-Systems-Jacket-with-Ultra-Light-Removable-Liner-up-to-size-3XL/875848263';
}
I am not sure if it is possible but any help is appreciated.
did you get it to work? :D