Skip to main content
toby
Associate II
August 11, 2015
Question

HTTP Headers - where are they requried?

  • August 11, 2015
  • 4 replies
  • 852 views
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
    This topic has been closed for replies.

    4 replies

    Gerardo GALLUCCI
    ST Employee
    August 11, 2015
    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
    tobyAuthor
    Associate II
    August 11, 2015
    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

    Gerardo GALLUCCI
    ST Employee
    August 11, 2015
    toby
    tobyAuthor
    Associate II
    August 12, 2015
    Posted on August 12, 2015 at 09:42

    That's great thanks..