C# HTTP request header parser?# DotNet - 窗口里的风景
s*i
1 楼
An HTTP request header is pretty much like this, (but encoded):
========================================================
POST / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-
excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwav
e-flash, */*
Referer: http://localhost
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.
========================================================
POST / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-
excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwav
e-flash, */*
Referer: http://localhost
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.