这是Youtube视频的实际网址,此时如果您复制到Chrome浏览器,则可能会观看该视频。但是当我尝试创建请求时,我得到UriFormatException
。
我做错了什么?
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
HTTP:/ R6 --- sn-x5jjxnn-ogul.googlevideo.com/videoplayback?ratebypass=yes&ms=au&fexp=924615,912522,932260,910207,936330,916611,936117,936910 ,936913&安培;源= YouTube和安培; sver = 3及MV = M&安培; ITAG = 43&安培;键= YT5&安培; IP = 119.72.195.38&安培; UPN = cBXbXj9uR-K&安培; ipbits = 0和ID = e9b0fb53c92a23c0&安培;到期= 1391346085&安培; sparams =号,IP,ipbits,ITAG,ratebypass,来源,UPN,到期&安培; MT = 1391322689&安培; fallback_host = tc.v17.cache3.googlevideo.com&安培;签名= EC0116EE4A09D80D38ACB1302F6776320D55A20C.518C15D3446E72D5E764D93AFBA0804B9257914F
答案 0 :(得分:13)
罪犯是这个家伙“http:/ r”。快速破解它是下面的代码
if (url.StartsWith("http:/r"))
url = url.Replace("http:/r", "http://r");
可能会稍后修改一般
答案 1 :(得分:1)