[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] [OT] httpd: download static files from an external HTTP

From: Giuseppe Modugno
Subject: Re: [lwip-users] [OT] httpd: download static files from an external HTTP server
Date: Tue, 20 Feb 2018 11:01:25 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Il 20/02/2018 08:51, address@hidden ha scritto:
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.
Hmm..., I was talking about *static files* only.

Depending on this variable, the URI of some static files should be:




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.
Maybe my request wasn't clear.

I don't need to change this behaviour at runtime or depending on a variable in the MCU that runs lwip/httpd. I will decide this behaviour at *compile time*, so when generating the httpd filesystem. I'm searching for an *HTML only* technique that let me change the URIs from one type to the other by changing a single point in a single file.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]