How can I route all of my Macs traffic through browsermob proxy in code?

404 views Asked by At

I'm trying to automate some tests on an iOS simulator, and I want to route traffic through browsermob proxy. As you can't set a proxy on the simulator, I think the best approach would be to route all of the traffic on the Mac it is running on through the proxy. How could I do this (through code)?

1

There are 1 answers

0
user650309 On BEST ANSWER

In the end I used the standalone proxy and interacted with it via code using the REST API.