问题
I can't seem to get any activity showing on anything relating to HTTP/proxy requests in Ubuntu.
I downloaded Charles Proxy first, opened it, but shows nothing. Then I tried Interceptor (Chrome extension), also nothing.
Having a look at my Ubuntu settings, it's entirely possible I'm supposed to configure something in here, in support of these options, but it's not documented at all.
How I can go about listening to network requests, intercepting them and serving other/mock json when they happen?
回答1:
You have to configure Chrome (or whatever the browser you use) to use the Charles Proxy's proxy (as far as I remember: localhost:8888
). As this proxy is only running when you have CharlesProxy opened, you probably won't want to define it system wide.
The best option is to use a proxy switch browser extension, such as Switchy Omega (chrome extension) to be able to rapidly toggle on/off the proxy used by the browser.
来源:https://stackoverflow.com/questions/58079618/charles-proxy-and-interceptor-are-not-tracking-any-http-request-in-ubuntu