AnsweredAssumed Answered

HTTPD: how are Content-Type and Content-Encoding HTTP headers set ?

Question asked by alexandrevincon on Mar 25, 2013
Latest reply on Mar 26, 2013 by alexandrevincon

I am currently studying the "httpsrv" example project from MQX 4.0 and I would like to know how the HTTPD server determines the value of Content-Type in the HTTP reply's header ? Is it deduced from the extension of the file, ie ".html" files automatically lead to "text/html" and ".js" files to "application/javascript" ?

 

Also, I would like to try and gzip the pages to gain some space. Is the Content-Encoding header set to "gzip" in this case ?

 

Many thanks to anyone who can answer !

 

Best regards,

AV

Outcomes