What I want is not a proxy, but a reading of all the HTTP responses (in the text) that go into my browser application.
I work with Qt, so I need to download something using Qt. So there is not much hope for mono.
Under the windows, I found Titanium Web Proxy / FiddlerCore / Nekoxy. Quite a few libraries written in C #. I wrote a wrapper to expose their COM functions to visible, after which I managed to download from Qt.
However, I can do nothing with OSX.
I agree to write myself, but I canβt find clues on how to do this.
I need only three functions
- startProxy (int port [, some descriptor of my application]): redirect all http transitions through my proxy 127.0.0.1:port
- onAfterSessionComplete (string requestBodyAsString, string requestPathAndQuery, string responseBodyAsString, int resultCode, string mimeType,): called when any HTTP request is completed
- shutdown ()
So, any hint of this on OSX? Better if there are some open source libs available, such as https://github.com/justcoding121/Titanium-Web-Proxy
By the way, I found mitmproxy, tinyproxy, but I cannot find a good way to implement 3 funts above. And all I need to do is read the HTTP response that goes through my application (written with Qt)
PS I know that Qt has a networkAccessManager, but it no longer works with QtWebEngine.
source share