titanium-web-proxy icon indicating copy to clipboard operation
titanium-web-proxy copied to clipboard

How to interrupt localhost traffic?

Open ljh1991125 opened this issue 3 years ago • 2 comments

Hi.

I am using Titanium Proxy 3.1.1397. Generally it works very well. But there is one problem. If it is localhost traffic, the proxy does not seem to be able to handle it. For example, if i type http://localhost/index.php, it is not detected by Proxy's OnRequest Callback. I need to redirect localhost traffic to server.

This is my source code.

                proxyServer.BeforeRequest += OnRequest;
                proxyServer.BeforeResponse += OnResponse;
                proxyServer.ServerCertificateValidationCallback += OnCertificateValidation;
                proxyServer.ClientCertificateSelectionCallback += OnCertificateSelection;
                proxyServer.EnableTcpServerConnectionPrefetch = false;
                proxyServer.EnableConnectionPool = false;

                explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Any, 8000, true)
                {
                    
                };

Thank you for your help.

ljh1991125 avatar Jun 03 '22 12:06 ljh1991125

How do you set to use the proxy? Manually in your OS/broswer? Usualy you have to enable it for localhost separatly.

honfika avatar Dec 25 '22 23:12 honfika

I've made a comment in another thread which explains how to do it: https://github.com/justcoding121/titanium-web-proxy/issues/954#issuecomment-1509708306

Enumix avatar Apr 15 '23 09:04 Enumix