Server | Response ContentType property specifies the HTTP content type of the server response. If ContentType is not specified, the default is text/html.
Use it in asp:
". *" = "Application/octet-stream"
". 001" = "application/x-001"
"." =
mail server server documentation domain login command
Directory (?) [+]
SMTP Protocol Analysis 1th Chapter. SMTP Overview 1.1. The location of SMTP in mail communication
SMTP, the Simple Mail delivery protocol, corresponds to the RFC document
When we do file upload and download, often use the following mimetype, listed below for your reference! Want more top Top'. A ': ' Application/octet-stream ','. Ai ': ' Application/postscript ','. AIF ': ' Audio/x-aiff ','. aifc ': ' Audio/x-aiff ','
I believe that many people will encounter this situation when implementing the file download function. The intention is to click the download connection and prompt to save the dialog box. this is often counterproductive, for example, a file such as
PHP header send various types of files and settings file download name
Header (' content-type:application/image/pjpeg ');//type of outputHeader (' content-disposition:attachment; filename= ' downloaded.jpg '); Download the displayed name,
Copy CodeThe code is as follows:
$filename = ' path + actual filename ';Types of filesHeader (' content-type:application/pdf ');Download the displayed nameHeader (' content-disposition:attachment; filename= ' file name when saving. pdf
PHPheader sends various types of files and sets the file download name & lt ;? Phpheader (Content-type: applicationimagepjpeg); output type header (Content-Disposition: attachment=filenamedownloaded.jpg); download display name; PHP header sends
PHP header send various types of files and settings file download name
Header (' content-type:application/image/pjpeg ');//type of output
Header (' content-disposition:attachment; filename= ' downloaded.jpg '); Download the displayed name,
The contenttype attribute specifies the HTTP content type of the response. If contenttype is not specified, the default value is text/html.
Syntax
Response. contenttype [= contenttype]
Parameters
Contenttype
A string that describes the content type.
To achieve FTP server configuration in Linux, most Linux release packages use the Washington University FTP (wu-ftpd), which is a server software with excellent performance, because of its many powerful functions and ultra-high throughput, over 60%
Document directory
Header ('content-type: Application/image/pjpeg '); // output typeHeader ('content-Disposition: attachment; filename = "downloaded.jpg" '); // download the name displayed. Note the format.Readfile('my.jpg ');// Set the type
Response. setContentType (MIME) is used to enable the client browser to differentiate different types of data and call different program embedding modules in the browser to process the corresponding data according to different MIME types.
For
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.