optimusTemplate
optimusTemplate copied to clipboard
Question: Proxy server similar to charles?
Hi, This is not particular to optimus, but thought it would check with you all to see if there are any good alternatives to Charles proxy for re-writing api request and responses? I have been using charles proxy for the same so far, but it is not easy to programmatically modify the request on runtime or re-write the response code as per the test scenarios.
There is mitmproxy-java which does allow me to intercept the messages and read response code, but does not seem to help me with rewriting request body or response code.
Please let me know if you have any suggestions.
Thanks Sarath
Hey @sarathsp23 Can you tell us the use case for this one, so that we can help you better. 🙂
Hey @thenishant , My app makes few API calls , currently I use charles to intercept and modify the request or response, to see the behaviour in the app. For example: Say I want to verify that correct error messages is displayed in the app for different error codes. And currently to do this, I use charles proxy (I have to pre-setup for respective tests).
But I want to modify the request or response on runtime programatically. So I have let the test cases modify the request or response based on the scenario.
Thanks Sarath
@thenishant Hey Nishant, Did you get a chance to go through the use case?