Windows Phone HttpWebRequest non ASCII Uri -


i've same problem in thread how handle httpwebrequest redirect non-ascii characters , i've spend 2 days searching how solve no answer. exception message: [net_webheaderinvalidcontrolchars] arguments: debugging resource strings unavailable. key , arguments provide sufficient information diagnose problem. see http://go.microsoft.com/fwlink/?linkid=106663&version=4.7.60408.0&file=system.net.dll&key=net_webheaderinvalidcontrolchars parameter name: name

could me please?

var wbr = webrequest.createhttp(new uri("http://www.10youtube.com/iowy8e6daqit-t53f8d4d6a64e6ec06e0b42a8c662cc05t-tmp4t-tmediumt-t18ttt.mp4", urikind.absolute));             wbr.allowautoredirect = true;             wbr.method = "get";             wbr.allowreadstreambuffering = false;             wbr.begingetresponse(ar =>             {                 var req = (httpwebrequest)ar.asyncstate;                 var res = req.endgetresponse(ar);             }, wbr); 

did try :

     system.escapeuristring() 

look @ documentation here :

http://msdn.microsoft.com/en-us/library/system.uri.escapeuristring%28v=vs.95%29.aspx


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -