Aria下载器添加header

croire 3 years ago
parent 568851bfaa
commit e37b9d0e76

@ -36,11 +36,11 @@ namespace DownKyi.Core.Aria2cNet.Client.Entity
[JsonProperty("dir")] [JsonProperty("dir")]
public string Dir { get; set; } public string Dir { get; set; }
//[JsonProperty("header")] [JsonProperty("header")]
//public string Header { get; set; } public string Header { get; set; }
//[JsonProperty("use-head")] [JsonProperty("use-head")]
//public string UseHead { get; set; } public string UseHead { get; set; }
[JsonProperty("user-agent")] [JsonProperty("user-agent")]
public string UserAgent { get; set; } public string UserAgent { get; set; }

@ -1025,9 +1025,9 @@ namespace DownKyi.Services.Download
//HttpProxy = $"http://{Settings.GetAriaHttpProxy()}:{Settings.GetAriaHttpProxyListenPort()}", //HttpProxy = $"http://{Settings.GetAriaHttpProxy()}:{Settings.GetAriaHttpProxyListenPort()}",
Dir = path, Dir = path,
Out = localFileName, Out = localFileName,
//Header = $"cookie: {LoginHelper.GetLoginInfoCookiesString()}\nreferer: https://www.bilibili.com", Header = $"cookie: {LoginHelper.GetLoginInfoCookiesString()}\nreferer: https://www.bilibili.com",
//UseHead = "true", UseHead = "true",
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36", UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
}; };
// 如果设置了代理则增加HttpProxy // 如果设置了代理则增加HttpProxy

Loading…
Cancel
Save