开发者

which header do i need to send to browser when responding with flash file

开发者 https://www.devze.com 2023-01-03 03:59 出处:网络
i build ed simple single threaded web server that i embedded to my application in Qt c++开发者_C百科

i build ed simple single threaded web server that i embedded to my application in Qt c++

开发者_C百科 this server are responding fine with simple html pages , but when i try to response with

flash file embedded inside the html all the html string just got printed to the browser

my question is what headers and http responses do i need to unable me to serve flash content to the browser

Thanks


The Content-Type header for SWF file should be set to application/x-shockwave-flash. Otherwise browser won't understand the file type and present it for downloading.

0

精彩评论

暂无评论...
验证码 换一张
取 消