谢谢
不过我不知道怎么看完整的请求
我的方法就是
wget -O "file_1" "http://v.youku.com/v_show/id_XMTM5MDUwODA4MA==.html"
wget -O "file_2" "http://v.youku.com/v_show/id_XMTY1ODYzMjQ1Ng==.html"
环境是ubuntu
然后file_1内容基本就是
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><meta name="renderer" content="webkit" /><meta name="google-site-verification" content
="F2zYXuMVH2X76NeYEdAiGokv0QFtgOB1ZgCSZPglQbs" /><title>一屋高才生 01—在线播放—《一屋高才生》—电视剧—优酷网,视频高清在线观看</title><meta name="title" content="一屋高才生" /><meta name="keywords" content="一屋高才生" /><meta name="descr
iption" content="一屋高才生 戴文豪与妻子张育英都是二婚,他们的家庭属于重组家庭,但是比较和睦。戴文豪是七十年代末的大学生,学历的含金量高,现在是报社的副主编,他的妻子是同批大学生,数学教授..." /><meta name="irTitle" content="" /><meta n
ame="irAlbumName" content="一屋高才生" /><meta name="irCategory" content="电视剧"/><link rel="stylesheet" href="http://css.ykimg.com/youku/dist/css/g_2.css" /><link rel="stylesheet" href="http://css.ykimg.com/youku/dist/css/find/g_59.css
" /><link rel="stylesheet" href="http://css.ykimg.com/youku/dist/css/find/play/play_26.css" /><script type="text/javascript"> var accessStatus = true;var oldPlayPage = ""; (function(){ function cookie (n, v, op) { if(v !== undefined) { o
p = op || {};var date, expires = "";if(op.expires) { if(op.expires.constructor == Date) { date = op.expires;} else { date = new Date();date.setTime(date.getTime() + (op.expires * 24 * 60 * 60 * 1000));} expires = '; expires=' + date.toGM
TString();} var path = op.path ? '; path=' + op.path : '';var domain = op.domain ? '; domain=' + op.domain : '';var secure = op.secure ? '; secure' : '';window.document.cookie = [n, '=', encodeURIComponent(v), expires, path, domain, secu
re].join('');} else { v = window.document.cookie.match( new RegExp( "(?:\\s|^)" + n + "\\=([^;]*)") );return v ? decodeURIComponent(v[1]) : null;} } var ua = window.navigator.userAgent;var href = window.location.href;var config = ['iPad'
,'Android','iPhone','iPod','Firefox|Mobile'];try{ var fromx = Cookie("_from_x_");Cookie("xreferrer", document.referrer);}catch(ex){ var fromx = 0;} for(var i=0; i<config.length;i++){if(config[i].indexOf('|') !== -1){ var mStr = {};mStr =
config[i].split('|');var mr = false;for(var s=0,len=mStr.length; s<len; s++){ if(ua.indexOf(mStr[s]) !== -1){ mr = true;}else{ mr = false;break;} } if(mr == true){ if(href.indexOf('?') !== -1){ href += '&x=1';}else{ href += '?x=1';} win
dow.location.href = href;break;} }else{ if(ua.indexOf(config[i]) !== -1){ if(href.indexOf("#") !== -1){ var wechat_redirect = href.split('#');href = wechat_redirect[0];} if(href.indexOf('?') !== -1){ href += '&x=1';}else{ href += '?x=1';
} window.location.href = href;break;} } } if(accessStatus == false && href.indexOf('?x') === -1 && href.indexOf('&x') === -1){ window.location.href = "http://www.youku.com/index/y404/";} if(oldPlayPage !== undefined && oldPlayPage.indexO
f('?old') !== -1 && href.indexOf('?x') === -1 && href.indexOf('&x') === -1){ var regx_decode = /&\w+;|&#(\d+);/g;var html_decode = { "<" : "<", ">" : ">", "&" : "&", " ": " ", """: "\"", "?": "" };oldPlayPage = oldPla
yPage.replace(regx_decode, function($0, $1){ var c = html_decode[$0];if(c == undefined){if(!isNaN($1)){ c = String.fromCharCode(($1 == 160) ? 32:$1);}else{ c = $0;} } return c;});window.location.href = oldPlayPage;} })();</script></head>
<body class="page_v" ><script>
with(document)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("exparams","userid=&aplus&sidx=ZclN8Gey11cAAAAAsgBxZ0Hy5Pb7IB+M&ckx=vyoukucomvshowidxmtm5mduwoda4mahtml|",id="beacon-aplus",src="//g.alicdn.com/al
ilog/mlog/aplus_o.js")
</script><script type="text/javascript">
后面还有好多,但应该意义不大,就不贴了。
file2就是乱码了。而且如果我用cat file2的话,会导致我的屏幕也变成乱码。
【 在 HiSureWong (HiSureWong) 的大作中提到: 】
: 把完整的请求头,请求体和完整的响应头,响应体发上来,我给你看下
--
FROM 123.125.26.*