Rewritten to use http polling from the windows end