One other note -- I just noticed a defect in the way the rewrite URLs are matched in the LittleProxy implementation. For https requests, the scheme (https://) and domain (
www.example.com) aren't matched. For http, it depends on how the browser or other client sends the URL.
I'll open a defect and see about getting this resolved for beta-2. In the meantime, try your scenario with the legacy ProxyServer class (instead of BrowserMobProxyServer) to see if that works for you. If not, hang tight and I'll try to get a fix to master quickly :)
-Jason