cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Headers - where are they requried?

toby
Associate II
Posted on August 11, 2015 at 09:26

Reading the documentation, I see that in some instances the HTTP header is requied to be appending to the strat of the files to be served by the HTTP server.  However it is not too clear which files requrie this.

Am i right in thinking this done automatically for the files stored in the external file system - I assume when they are converted to the httpdfsupdate file? But not for the internal files?

Thanks in advance...

#spwf01sa #http
4 REPLIES 4
Posted on August 11, 2015 at 10:00

Hi Toby,

- for internal RAM files, you can append or not the header. By default (only 2 parameters for FSC command), header is appended by customer; using the third parameter into FSC, you can leave default behaviour (param=1) or force webserver to automatically add header on the fly (param=0);

- for internal FLASH files, cannot change behaviour;

- for external FLASH files (only for SPWF01Sx.11), use '''#define APPEND_HEADER'' into httpd_gen.c:35 provided file to tell webserver what it should do.

Hope to be useful

jerry

toby
Associate II
Posted on August 11, 2015 at 13:56

Hi Jerry,

Thanks for that.  Is there a newer vesion of the http_gen.c?  The ones I have in the latest firmware package (3.4) are dated 7/8/2014, and have no reference to the #define APPEND_HEADER in it?

Thanks,

Toby

toby
Associate II
Posted on August 12, 2015 at 09:42

That's great thanks..