0

从这里我得到json:

https://my.mail.ru/+/video/meta/1537606332146778160

我有一个视频链接:

http://cdn29.my.mail.ru/hv/7590086.mp4?slave[]=s%3Ahttp%3A%2F%2Fvideo-cephgw2.i%3A8001%2Frados%2F7590086-hv&p=f&expire_at=1551808800&touch=1389788866®= 202&sign=d7c3cfa0753f312b99cc2f9d2512a2fad1f78e86&seekSchema=3&key=1080P

这是我的代码:

private void button1_Click(object sender, EventArgs e)
{
        string dowloadLink = "https:" + textBoxUrl.Text + "&seekSchema=" + labelSeekSchema.Text + "&key=" + labelFileQuality.Text;
        listBoxDownload.Items.Add(lblFileName.Text);
        Thread thread = new Thread(() => {
            WebClient client = new WebClient();
            client.Headers.Add("User-Agent", "Mozilla/4.0 (compatible; MSIE 8.0)");                         
            client.DownloadFileAsync(new Uri(dowloadLink), @"C:\\Temp\test.mp4");
            client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
            client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
        });
        thread.Start();
}

当我尝试下载它时,我得到一个大小为 0 的文件。

以下是邮递员的答案: 403 Forbidden Time:104 ms Size:298 B

访问控制允许凭据 →true
Access-Control-Allow-Headers →范围
Access-Control-Allow-Methods →GET, OPTIONS, HEAD
访问控制允许来源→http://my.mail.ru
内容长度 →0
日期 →2019 年 3 月 5 日星期二 15:43:21 GMT
内容类型→文本/纯文本;字符集=utf-8

怎么了?

4

0 回答 0