Chat freely about anything...

User avatar
By Spafin
#55918 Hi!

I don't even know if what I want is possible, but let's try. My Android phone is rooted and last days it has been trying to install new apps and behaving very strangely in other ways. I would like to know if it's sending information somewhere and I thought ESP8266 would be a great fellow to check that. I'd like to know if I can connect my phone to the ESP8266 (set in AP mode) and get a log of all the http requests my phone does. Of course I could use a server on the ESP8266 and modify the hosts file of the phone to redirect ll the traffic to the server IP, but I prefer not to modify it if it's possible to get the request list easily.

Is there any easy way to achieve what I want? Thanks very much.
User avatar
By sivacharan
#56229 If you're interested in seeing which specific headers a remote client is sending to your server, and you can cause the request to run a CGI script, then the simplest solution is to have your server script dump the environment variables into a file somewhere.
User avatar
By eduperez
#56308
sivacharan wrote:If you're interested in seeing which specific headers a remote client is sending to your server, and you can cause the request to run a CGI script, then the simplest solution is to have your server script dump the environment variables into a file somewhere.


I think you missed the point: OP needs to log requests made from the phone to any server, not his own server; what he needs is an HTTP proxy. A quick google search suggests the following thread in this forum:

viewtopic.php?f=32&t=10103