Well, it is really very very easy to parse incoming HTTP requests sent by IP Observer using a socket, no need to scrap screen, no need to start any server.
The code will be like this one. I am doing in C# UWP application, but is easy to do it in any other language.
Start a listener with a socket on port 80:
StreamSocketListener listener = new StreamSocketListener();
listener.ConnectionReceived += Listener_ConnectionReceived; ;
listener.Control.KeepAlive = true;
try
{
NotifyUser("Server Online");
NotifyUser("Waiting messages on port " + port);
await listener.BindServiceNameAsync(port);
}
catch (Exception exception)
{
NotifyUser("Fallo inicializando servidor: " + exception.Message);
}
When receive a packet, htto request is only text. So read, parse parameters and return a correct OK response to de box.
async private void Listener_ConnectionReceived(StreamSocketListener sender, StreamSocketListenerConnectionReceivedEventArgs args)
{
NotifyUserFromAsyncThread("Conexi
---
![Captura de pantalla completa 20032017 180334.jpg|1002x855](upload://uDZViWMVDJLI6tMCmd2UxupoQkC.jpeg)