wlfcolin / file-downloader

FileDownloader, powerful http/https file download tool on Android
Apache License 2.0
384 stars 152 forks source link

请问如何添加header, #21

Open JaminFan opened 7 years ago

JaminFan commented 7 years ago

对于受限制的下载资源,例如url需要添加登陆信息,在header中添加信息等等情况有相应的处理方法吗?我使用MultiBuilder.addHeaderWithUrl()添加头,但是不起作用,探测文件一直是失败的

ktcer commented 7 years ago

我也是 啊 ,添加Header不成功。请问你怎么解决的

vbea commented 5 years ago

DownloadConfiguration.Builder builder = new DownloadConfiguration.Builder(); builder.addHeader("key", "value"); FileDownloader.start(url, builder.build());