Invalid URI: The Authority/Host could not be parsed from very long url
c#, http, uri, youtube
Solution
The offender was this guy "http:/r". A quick hack for it is the code below
if (url.StartsWith("http:/r"))
url = url.Replace("http:/r", "http://r");
might modify it later for something general
Problem
This is the actual url to a Youtube video, at this moment if you copy to your chrome browser you may watch the video. But when I try to create a request I get `UriFormatException`. What am I doing wrong? ``` 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&source=youtube&sver=3&mv=m&itag=43&key=yt5&ip=119.72.195.38&upn=cBXbXj9uR-k&ipbits=0&id=e9b0fb53c92a23c0&expire=1391346085&sparams=id,ip,ipbits,itag,ratebypass,source,upn,expire&mt=1391322689&fallback_host=tc.v17.cache3.googlevideo.com&signature=EC0116EE4A09D80D38ACB1302F6776320D55A20C.518C15D3446E72D5E764D93AFBA0804B9257914F