optimusTemplate icon indicating copy to clipboard operation
optimusTemplate copied to clipboard

Question: Proxy server similar to charles?

Open sarathsp23 opened this issue 5 years ago • 3 comments

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

sarathsp23 avatar May 28 '19 23:05 sarathsp23

Hey @sarathsp23 Can you tell us the use case for this one, so that we can help you better. 🙂

thenishant avatar Jun 06 '19 11:06 thenishant

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

sarathsp23 avatar Jun 07 '19 00:06 sarathsp23

@thenishant Hey Nishant, Did you get a chance to go through the use case?

sarathsp23 avatar Jun 17 '19 06:06 sarathsp23