http proxy using EPS8266
Posted: Sun May 22, 2016 3:56 pm
Hi,
My project requires that a browser controls the ESP8266 via wifi while using data from a public website. Unfortunately, accessing two different domains that way is not possible due to cross-site scripting limitations in browsers.
So I thought the best solution could be to have the ESP8266 proxy the requests to the public website, so that the browser only "talks" to the ESP8266.
I succeeded in having the browser request data from the ESP, which itself requests data from the external website, receives the response and forwards it to the browser.
The problem is that this only works with relatively small responses due to memory constraints on the ESP. So I would like a kind of "streaming" solution that forwards the response to the browser while it is still being read from the server.
Any idea how to achieve that streaming ?
Kind regards,
Vicne
My project requires that a browser controls the ESP8266 via wifi while using data from a public website. Unfortunately, accessing two different domains that way is not possible due to cross-site scripting limitations in browsers.
So I thought the best solution could be to have the ESP8266 proxy the requests to the public website, so that the browser only "talks" to the ESP8266.
I succeeded in having the browser request data from the ESP, which itself requests data from the external website, receives the response and forwards it to the browser.
The problem is that this only works with relatively small responses due to memory constraints on the ESP. So I would like a kind of "streaming" solution that forwards the response to the browser while it is still being read from the server.
Any idea how to achieve that streaming ?
Kind regards,
Vicne