Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Proxy server similar to charles? #48

Open
sarathsp23 opened this issue May 28, 2019 · 3 comments
Open

Question: Proxy server similar to charles? #48

sarathsp23 opened this issue May 28, 2019 · 3 comments
Labels

Comments

@sarathsp23
Copy link

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

@thenishant
Copy link
Contributor

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

@sarathsp23
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants