Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何添加header, #21

Open
JaminFan opened this issue Oct 28, 2016 · 2 comments
Open

请问如何添加header, #21

JaminFan opened this issue Oct 28, 2016 · 2 comments

Comments

@JaminFan
Copy link

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

@ktcer
Copy link

ktcer commented Jul 13, 2017

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

@vbea
Copy link

vbea commented Feb 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants