这是QHttp那个例子的HttpHeader通讯部分
- ClientData
- GET /smile HTTP/1.1
- Connection: Keep-Alive
- Host: smile-clb52.nicovideo.jp
- ServerData
- HTTP/1.1 403 Forbidden
- Content-type: text/plain
- Expires: Sat, 21 Feb 2009 02:34:01 GMT
- Cache-Control: max-age=144000
- Content-Length: 13
- Date: Thu, 19 Feb 2009 10:34:01 GMT
- Server: lighttpd
- Via: 1.0 jpcnw2slh007 (Jaguar/3.0-62)
- Connection: close
- 403 Forbidden
这是flashget的
- Thu Feb 19 18:30:14 2009 GET /smile?v=2555194.86079 HTTP/1.1
- Thu Feb 19 18:30:14 2009 Host: smile-clb52.nicovideo.jp
- Thu Feb 19 18:30:14 2009 Accept: */*
- Thu Feb 19 18:30:14 2009 Referer: [url]http://smile-clb52.nicovideo.jp[/url]
- Thu Feb 19 18:30:14 2009 Cookie: __utma=8292653.1168244159.1233746351.1233746351.1233746351.1; __utmz=8292653.1233746351.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); user_session=user_session_4392669_5797953601075545588; nicohistory=,nm6040452:1233746349:1233746349:b8634ce9c884caaa:1,nm3862136:1233746349:1233746349:86c3f4c1a08501d5:1
- Thu Feb 19 18:30:14 2009 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
- Thu Feb 19 18:30:14 2009 Pragma: no-cache
- Thu Feb 19 18:30:14 2009 Cache-Control: no-cache
- Thu Feb 19 18:30:14 2009 Connection: close
- Thu Feb 19 18:30:16 2009 HTTP/1.1 200 OK
- Thu Feb 19 18:30:16 2009 Date: Thu, 19 Feb 2009 10:29:39 GMT
- Thu Feb 19 18:30:16 2009 Content-Type: video/flv
- Thu Feb 19 18:30:16 2009 Content-Disposition: inline; filename="smile.flv"
- Thu Feb 19 18:30:16 2009 Cache-Control: max-age=144000
- Thu Feb 19 18:30:16 2009 ETag: "27266817"
- Thu Feb 19 18:30:16 2009 Accept-Ranges: bytes
- Thu Feb 19 18:30:16 2009 Last-Modified: Fri, 07 Mar 2008 16:54:58 GMT
- Thu Feb 19 18:30:16 2009 Content-Length: 27266817
- Thu Feb 19 18:30:16 2009 Server: lighttpd
- Thu Feb 19 18:30:16 2009 Via: 1.0 jpcnw2slh015 (Jaguar/3.0-62)
- Thu Feb 19 18:30:16 2009 Age: 0
- Thu Feb 19 18:30:16 2009 Expires: Sat, 21 Feb 2009 02:29:35 GMT
- Thu Feb 19 18:30:16 2009 Connection: close
- Thu Feb 19 18:30:16 2009 开始接受数据!
很明显,没Referer人家不理你,关不关Cookie的事情就不知道了
另外……如果是做抓nicovideo的软件,我能不能求一份……
[ 此贴被都市无名者在2009-02-19 19:44重新编辑 ]