I created new WPF project with simple button. Return "error: server returned status description:" + response.StatusDescription If (response.StatusCode = HttpStatusCode.Found) StreamReader reader = new StreamReader(responseStream, Encoding.UTF8) Stream responseStream = response.GetResponseStream() If (response.StatusCode = HttpStatusCode.OK) HttpWebResponse response = (HttpWebResponse)request.GetResponse() įoreach (Cookie cookie in response.Cookies) Request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate Request.Accept = "text/html,application/xhtml+xml,application/xml q=0.9,*/* q=0.8" HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url) Public string GetHttpSpecial(string url, CookieContainer cookies) _VideoURL = GetHttpSpecial(url, cookies) This is the code: string url = "" + clip_id + "&sig=" + request_signature + "&time=" + request_signature_expires + "&quality=" + hd + "&codecs=H264,VP8,VP6&type=moogaloop_local&embed_location=" The problem is that I receive the code 200 (with a page that says "Permision denied") when I have to receive de code 302 to do a redirection. I'm trying to download videos from vimeo) with c#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |