There is a token in my request’s header and I need to modify it to other tokens to test.
Now I can manually do this by using the Charles’s UI.
(click ‘rewrite’ and copy paste the now token I want to test)
But there are so many new tokens and it takes me too long to manually change token then check response.
Is there any better solution, like a programmer’s way to automate the process?
I hope each time I get the response of modified request, the token can be replaced to the next one automatically.(new tokens array could be in DB or text files)
But Charles is not open-sourced so I guess I cannot customize its code.
Anyone has a better idea? Thanks!
You can do that using any HTTP Interceptor. There are many tools like Requestly, ModHeader, Fiddler.
Requestly has a dynamic override method that can help in your case.