page, contenttype= "text/html".2. Match the file type of the response against the MIME content type table.3. The following list of commonly used MIME (multipurpose Internet Mail Extensions) content type tables
Extended Name
Type/Sub-type
Application/octet-stream
323
text/h323
Acx
Application/internet-property-stream
Ai
Application/postscript
Copy Code code as follows:
$filename = ' path + actual filename ';
Type of File
Header (' content-type:application/pdf ');
Download the displayed name
Header (' content-disposition:attachment filename= file name when saved; PDF ');
ReadFile ("$filename");
Exit ();
?>
Here are the methods commonly used on the internet
Copy Code code as follows:
if (Isset ($link))
{
Header ("http/1.1 303 and Other");
Header ("Location: $link");
Exit
}
The 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""." = "application/x-301"". 323" = "text/h323"". 906" = "application/x-906"". 907" = "drawing/907"". A11" = "Application/x-a11"". ACP" = "AUDIO/X-MEI-AAC"". Ai" = "Application/postscript"". AIF" = "Audio/aiff"". aifc" = "Audio/aiff"".
) After the download is complete, decompress the file (h323.dll) to the plugin/0.9.x directory of the ethereal installation directory. For example, my file is 0.9.11.(3) perform the following settings:
A. Start EtherealB. Menu edit-> preferenceC. Click "+" in front of protocols to expand protocols.D. Locate q931 and clickE. Make sure that "desegment... TCP segments" is selected (that is, the box is pressed)F. Click TCPG. Make sure that "allow
chatSudo apt-Get install camoramaHttp://infinito.f2o.org/cameramonitor/cameramonitor_0.1-1_i386.debBecause I have an ov511 chip, it is easier to directly think about it. It may be P of trouble.After ekiga is set up, install http://snapshots.voxgratia.org/win32/ on WindowsYou can perform a video chat between Linux and Windows. In XP, enter the conf command to Start netmeeting.In the ekiga window, enter h323: IP address for Windows.
21. Learn Emacs doc
] = 0.6.29 XOR tr. SRC [0: 3] = Not! Non-logical, such! LLCFor example:I want to capture all the HTTP packets received or sent by the host whose IP address is 192.168.2.10. The appropriate filter is:
Use protocol plug-ins in Ethereal Ethereal can support many protocols, but some protocols need to be installed after the plug-in can be resolved, such as H.323. Taking the H.323 protocol as an example, we first download the H.323 plug-in of ethereal, http://www.voice2sniff.org/decompress the file (
protocol.
2. algs (Application Layer gateways)
Generally, Nat only converts the IP and port information in the header, and does not analyze the fields in the data load of the application layer, after the corresponding packets are identified, the load information other than the IP header is parsed, the address is converted, and the checksum is re-calculated. Specifically, ALG can process the following protocols: DNS, FTP, h323, sip, HTTP, ils, MSN/QQ,
1. Gateway Configuration1. specified numberDial-peer voice 111 potsDestination-pattern + 0Port 3/1/02. Specify a gatewayGateway!3. Specify the gatekeeperInterface FastEthernet0/0Ip addressDuplex autoSpeed autoH323-gateway voip interfaceH323-gateway voip id appskeeper ipaddr 0.0.0.0 1719H323-gateway voip H323-ID syhoo@syhoo.com.cn4. Specify the VOIP ing and RAS ModeDial-peer voice 203 voipDestination-pattern 1 .....Session target ras!Ii. configuration
"image/gif" and "text/javascript", but there are many contentType values. We can say that the control can be embedded into resources.There are many types, such as images, texts, and videos. To sum up,-----------------------------------------------". *" = "Application/octet-stream"". 001" = "application/x-001"". 301" = "application/x-301"". 323" = "text/h323"". 906" = "application/x-906"". 907" = "Fig/907"". A11" = "application/x-a11"". Acp" = "audio/
In the past, the aspx page had to output the xml format, and the xml format can be output directly on the page. Now it is not available to upgrade to asp.net 3.5. Although the xml format string is output, the browser will not display it as xml, add esponse to the aspx page. contentType = "text/xml.
Appendix: Response ContentType
". *" = "Application/octet-stream"". 001" = "application/x-001"". 301" = "application/x-301"". 323" = "text/h323"". 906" =
Two-interface router with Nat
2514 router
Current Configuration:
!
Version 12.0:
Service timestamps debug uptime
Service timestamps log uptime
No service password-Encryption
!
Hostname Horton
!
Enable secret 5 $1 $ gwrz $ YS/82lxsycgd1d5nua9ob1
Enable Password ww
!
IP subnet-zero
!
IP inspect name ethernetin cuseeme timeout 3600
IP inspect name ethernetin FTP timeout 3600
IP inspect name ethernetin h323 timeout 360
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.