惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - Yolion

[转贴]VBA语句集粹 Google奥运会logo [转载]How to test web load balance 离开Cnblogs太久了 Top 10 .NET & C# on Amazon 看东亚四强赛想到的 [转贴]ASP.NET Session State Partitioning using State Server Load Balancing 招聘ASP.NET(C#)软件工程师(上海) 我与ASP.NET之父Scott Guthrie合影 推荐一款Xml编辑器(XML Notepad) DIV+CSS教程(来自标准之路) 收集不同浏览器下,CSS Hacks 公司尽然把cnblogs给屏蔽了,可恶!!! 大家有没有发现博客园收藏文章不成功的问题 关于用IE7.0开发ASP.NET的一个小问题 CSV文件的注意事项 ASP.NET 2.0中CSS失效的问题总结(摘自孟子E章) sql server系统表详细说明(转) HTML转义字符表
解析Response对象
Yolion · 2008-03-12 · via 博客园 - Yolion

In ASP.NET this is represented as the Response object. When the Web server responds to a request, the communication is typically in the following text-based format:

1.HTTP/1.1 200 OK
2.Server: Microsoft-IIS/6.0
3.Content-Type: text/html
4.Content-Length: 38
5.<html><body>Hello, world.</body><html>

The first line contains the protocol and version information, plus a status-code and reason.

Status-Code Description

Group

1xx

Informational: Request received, continuing to process.

2xx

Success: The action was successfully received, understood, and accepted.

3xx

Redirect Command: Further action must be taken in order to complete the request.

4xx

Client Error: The request has a syntax error or the server does not know how to fulfill the request.

5xx

Server Error: The server failed to fulfill a request that appears to be valid.

In addition to the status-code groups, HTTP/1.1 defines unique status-codes and reasons. (A reason is nothing more than a very brief description of the status-code.)

Status-Code

Reason

100

Continue

200

OK

201

Created

300

Multiple Choices

301

Moved Permanently

302

Found

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

407

Proxy Authentication Required

408

Request Time-out

413

Request Entity Too Large

500

Internal Server Error

501

Not Implemented

The second line of the response indicates the type of Web server.
The third line (Content-Type) indicates the type of resource that is being sent to the Web browser. This indicator is in the form of a Multipurpose Internet Mail Extensions (MIME) type. In this case, the file is a static HTML text file. The MIME type is a two-part designator "type/subtype," in which the first part is the resource type and the second part is the resource subtype. 

MIME Type

Description

text

Textual information. No special software is required to get the full meaning of the text, aside from support for the indicated character set. One subtype is plain, which means that the text can be read without requiring additional software. Other subtypes are html and xml, which indicate the appropriate file type(s).

image

Image data. Requires a display device (such as a graphical display or a graphics printer) to view the information. Subtypes are defined for two widely used image formats, jpeg and gif.

audio

Audio data. Requires an audio output device (such as a speaker or headphones) to "hear" the contents. An initial subtype called basic is defined for this type.

video

Video data. Requires the capability to display moving images, typically including specialized hardware and software. An initial sub-type called mpeg is defined for this type.

application

Other kinds of data, typically either uninterpreted binary data or information to be processed by an application. The subtype, called octet-stream, is to be used in the case of uninterpreted binary data, in which the simplest recommended action is to offer to write the information into a file for the user. The PostScript subtype is also defined for the transport of PostScript material.

More Info 

MIME Types The registry contains a list of MIME types/subtypes at the following location:

HKEY_CLASSES_ROOT\MIME\Database\Content Type.

After the content-length line, the response message is returned. This message is based on the MIME type. The browser attempts to handle the message based on its MIME type.