|
From: | address@hidden |
Subject: | Re: [lwip-users] [OT] httpd: download static files from an external HTTP server |
Date: | Tue, 20 Feb 2018 08:51:44 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 20.02.2018 08:15, Giuseppe Modugno wrote:
I think this isn't strictly related to lwip, but it's a request typical on electronic devices where lwip runs, i.e. devices with limited and restricted resources.
It is somewhat related to lwIP as you have to know how to create dynamic content. That depends on the webserver.
[..] Depending on this variable, the URI of some static files should be: /img/big_image.png or external.webserver.org/img/big_image.png Any suggestions?
Yes. If you use lwip's integrated httpd, that is.You can use SSI to generate the different links. In the lwIP http server, SSI works everywhere in the page, even in a form or in a link element. You only have to set LWIP_HTTPD_SSI_INCLUDE_TAG to 0. If this is 1, the tag part of the html source file gets included in the resulting page and that might violate the html code.
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |