Note: I just wrote an article titled ihttphandler (2): anti-leech! My resources can only be downloaded by my users. The URL is http://blog.csdn.net/zhoufoxcn/archive/2008/01/11/2018.5.aspx. It is estimated that many friends are not familiar with the
How can I allow a mobile phone to access the WAP website server?
In fact, this only requires a mobile phone supporting WAP, a computer, and a gateway (hardware, which is generally provided by a telecommunications service provider). The Gateway can
How can I allow a mobile phone to access the WAP website server?
In fact, this only requires a mobile phone that supports WAP, a computer, and a gateway (hardware, which is generally provided by a telecommunications service provider). The Gateway
This is because the Content-Type value of the Javascript HTTP Response sent from the server is text/plain (default .) What you expect to return is compatible with the Javascript type.
Solution: Add Content-Type in the returned field of the server.:
When you complete an online playback module, you may have trouble using an empty page, reading a media file in stream mode, and then assigning the page as a file name to the filename attribute of the webpage player. the result is that files in
The example in this article describes how PHP accurately obtains file MIME types. Share to everyone for your reference. The implementation methods are as follows: ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27-
Detailed steps are:Open Internet Services Manager Internet Services Manager--> Web site Properties-->http header (MIME map)--> new
Add content Type (MIME) Association extensionThe following are commonly used mobile file format extensions:If you
If your computer, the Web server is IIS
iis--Default Web Site Properties-->http Header-->mime map--> file type--> new type
. WML TEXT/VND.WAP.WML
. WMLC APPLICATION/VND.WAP.WMLC
. wmls Text/vnd.wap.wmlscript
. WMLSC APPLICATION/VND.WAP.WMLSCRIPTC
.
Facilitate parsing of appropriate files in IIS or other servers
Some formats can not be downloaded or accessed after uploading, you need to set MIME,
In host management, set MIME to add, such as. flv needs to be set up before it can be accessed
MIME format in IIS, sorted by type/subtype
The table below lists MIME content types sorted by MIME content type/subtype, which are registered in IIS 4.0 and IIS 5.0.
Type/subtype extension IIS 4.0 IIS 5.0
Application/envoy Evy is
When you request a file from the IIS 6.0 Web server, and the file extension is not the MIME type defined on the Web server, you will see the following error message:
HTTP Error 404-the file or directory cannot be found.
Cause Earlier versions of
Summary of several ways to obtain json data from the server based on the $. ajax () method,. ajaxjson
1. What is json
Json is a data structure that replaces xml. Compared with xml, json is more compact but has a strong descriptive capability, and
Content-typeThis header contains the "Mime-type" of the document. The navigator will determine how the document is parsed based on this parameter. For example, an HTML page (or a PHP page with HTML output) would return something like
This article was reproduced from: http://hotsunshine.iteye.com/blog/857485Using Javax.activation.MimetypesFileTypeMapNeed to introduce Activation.jar this jar package, he can get http://java.sun.com/products/javabeans/glasgow/jaf.html from this
This example describes how PHP obtains file types and file information. Share to everyone for your reference. The implementation methods are as follows:
";
echo "File size:". Round (FileSize ("$file")/1024,2). " Kb ";
echo "File size:".
Background introduction:MIME: Full name Multipurpose Internet Mail Extensions, multi-function Internet Message expansion service. It is a Multipurpose Internet Mail Expansion protocol that was first applied to the e-mail system in 1992, but was
Java Servlet programming can easily send HTML files to the client's Web browser. However, many sites also allow access to documents in non-HTML format, including Adobe PDF, Microsoft Word, and micorsoft excel. In fact, as long as these non-HTML
First, the use of intent
Intent mainly has the following important uses:1. Start activity: You can pass the intent object to the StartActivity () method or the Startactivityforresult () method to start an activity. The intent object contains
Why do I have to add a property to the form where I uploaded the file enctypeUpload files in the form of to add attributes Enctype= "Multipart/form-data", many people just rote know upload form to write, know it but do not know why. So why do you
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.