what is the right way to redirect/forward/modify
Hi all,
I don't want a solution, I just looking for the right way to implement something which I have never made before and I don't know its name....
It is something like port forwarding, rerouting, redirecting with some spoofing or proxy or ???
So actually I have a web server on a smart home device which can switch lights on/off, regulate temperature, dim lights ...
I have also a smartphone where a google app is installed which is connected to this web server and drives that unit.
What I want is to catch that traffic, and either modify the commands (arriving from phone) or send commands to the unit directly, without the phone.
This unit has an api with a relatively simple syntax (using both get and put), the response is a json "file" and I have a raspberry pi for this. But what is the tool to use (in perl/python/whatever)?
The pi should be seen as the web server from the phone.
|