WebPagetest Forums
export.php har content type - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: export.php har content type (/showthread.php?tid=2964)



export.php har content type - ebo488 - 09-03-2011 02:25 AM

I have exported a har file from the external webpagetest, when you do this it is downloaded as a har-->application/json content type. However if i save that file to my directory and then try to download it from my apache server, the content type shows up as ms dos executable and me har viewer cannot read the har file. What would cause this? is there something in the export.php file that tells the server it is a har file or is this strictly on my serverside not know it is a har and changing the content type to ms dos executable, thanks.


RE: export.php har content type - pmeenan - 09-03-2011 02:28 AM

export.php sets the mime type to application/json explicitly. If you want your local apache to do the same for .har files you'd need to add a rule to the apache configure to set the mime type appropriately.