@pajp One thing: the rules can only use message headers as thatâs the point where matching is done. The proxy currently cannot wait until the end of a 10MB response body until it decides to intercept it. But I guess thatâs a decent trade off?
@pasi awesome! Iâll dig into it next week when Iâm back at work. Now Iâm off to Stockholm for a Taylor Swift concert. đ
There are a few embarrassing bugs in the 1.8.0 version. I have now fixed a bunch and will release 1.8.1 after I think I have squashed them all.
Proxygen 1.8.1 update is now out for iOS and Mac and it fixes several bugs đ
@pasi havenât had a reason to use the interception logic just yet, Iâll get there, but I manage to beachball Proxygen quite easily by simply having a ~big binary request payload (multipart POST, one of the parts a 12K executable file) and trying to view it in the raw request view
@pajp Hmm yeah NSTextView will beachball if you give it too much text. âShow Binary Message Dataâ should be disabled in Advanced settings by default but that doesnât apply to Intercept tool.
Hmm.. I wonder what would be a good way to prevent that. Maybe a âmaximum message sizeâ Intercept option đ€
@pajp In the mean time, you could try limiting content types under Intercept options to only those you expect to intercept, so that the binary blobs donât get in the way!
@pasi ah to be clear this isnât in the intercept view, this is in the normal history view,
no interception performed. And âShow binary message dataâ is left at the default unchecked. Maybe it doesnât know how to handle multipart requests with binary data?
@pajp Hmm it tries to decode the body as UTF8 string and if that fails deems it as binary. Multipart should not affect that logic at all. Maybe the content-type indicates that itâs textual and that confuses the categorization.
@pajp Okay just check, if the body is under 1MB in size, content-type indicates that its text based _or_ it can be decoded as UTF8 string, then it is displayed inline even if âShow Binary Messagesâ is unchecked.
@pajp Aside from the sluggish NSTextView performance (which I donât pay much attention to for now) anything else that youâd like to see improved in Proxygen?
@pasi hey! Sorry I never got back to you - Iâve been waiting to come up with something useful to say! I use it several times per week and itâs great. Maybe auto-rewrite of content would be one thing, as I turn to mitmproxy for that. Maybe colourful JSON presentation. đ
@pajp Iâll get tree-sitter based syntax highlighting once Runestone comes out. Just need to wait for all that niceness.
There is match & replace in Proxygen too. Since you have Plus subscription you should be able to configure regex based rules pretty easily. Try it out!