Skip to content

Can't download for some Urls?

冉天华 edited this page Jun 9, 2018 · 6 revisions

This case may occur because of the back-end secure verification.

In the most case, you can fix this problem through adding you known request-header field: BaseDownloadTask#addHeader(name, value).

Such As:

which indicate where the request originated:

We can't download the resource from the Url: http://web.dl.byfen.com/app/201631/1470281368903.apk directly, instead you will receive 302 to its homepage, then you download the homepage html, but if you add the request header like the following, You will receive correct resource response.

task.addHeader("Referer", "http://web.dl.byfen.com/app/201631/1470281368903.apk");