![]() 7z files should have content type "application/x-7z-compressed".executable files will have content type "application/octet-stream" or one more specific to the application. ![]() ![]() plain text files should have content type of "text/plain".Html should have content type of "text/html".Here are some common content types (there are many more): It is the responsibility of the server housing the files to send an appropriate content-type in the http response header. It is this content-type in the response header (NOT the filename extension) that a standards-compliant browser like FFox uses to determine how to handle the file. One of the functions of the http response header is to define what type of file is attached, via a "content-type" (often referred to as MIME type) declaration - this tells the browser how to handle the file. NOTE: this is in addition to any statements included in the section of an actual html document.īrowsers handle the reception of the response header transparently so the general user is not aware of it. The system at the other end evaluates the request, then sends back an http response header attached to the return file. When you click on a link, your browser sends an http request.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |