Perehvati traffic for REST API development
Hello. On duty, engaged in the development of REST APIs for various mobile applications. Sometimes you need to see what requests our application sends and how the server responds. In addition, it is sometimes necessary to replace the data in the request and check the application. Technically, I imagine it as a proxy, which is running in a local network to which to redirect all traffic to the example test Wi-Fi access point. This proxy has an address where I can go and see all requests which she caught, put the lock on which the request or make another kind of filth / grace. Do you know a similar tool? Or have to write such a tool yourself.
7 answers
In General, what you describe — task ICAP specially designed Protocol for adapting content, it is used almost all the decisions that need to check/change/filter the data passing through the proxy.
But this is, again, the General case, it is possible to just emulate the queries will be easier than to raise such infrastructure.
Um... why not just add in the rest API system for logging requests/responses? Substitution of the data in the queries? again, why not just compile your own and send using the same curl...
p.s. do the same, but somehow that's never been necessary to monitor who sends what. Why?
You can write local (in your network) proxy for your Protocol and redirect traffic to it through the substitution of the local DNS record.
In this embodiment, all the cards are in the hands of substitution data + you can "intercept" SSL traffic (you have your certificate).
Cons — need to bother.
Find more questions by tags Mobile developmentRESTful API