Comments (9)
正常情况下不需要任何修改就支持https,如果你的连接是自己签发的证书,那需要你自己配置okhttp让它信任你自己的证书
from rxdownload.
不是自己签发的证书 ,是默认所有的证书 会下载失败 不支持https
from rxdownload.
如果是配置okhttp 信任自己的证书 需要怎么写
from rxdownload.
你能把你具体的报错信息贴出来吗?你说不支持https,你有把demo代码拉下来看吗?demo里就是https的下载链接
from rxdownload.
Hostname 39.165.164.20 not verified:
certificate: sha256/MS2HqIvRWLHr0b6GGKPUzqB6xsUxE6t4SDhSH6I/jro=
DN: CN=yc.hngfyjy.com
subjectAltNames: [yc.hngfyjy.com]
from rxdownload.
https://blog.csdn.net/zzz_zzz_z/article/details/51824765, 这里有解决办法
from rxdownload.
fun Task.download(
header: Map<String, String> = RANGE_CHECK_HEADER,
maxConCurrency: Int = DEFAULT_MAX_CONCURRENCY,
rangeSize: Long = DEFAULT_RANGE_SIZE,
dispatcher: Dispatcher = DefaultDispatcher,
validator: Validator = SimpleValidator,
storage: Storage = SimpleStorage,
request: Request = RequestImpl, // 替换你自己的Request对象
watcher: Watcher = WatcherImpl
)
创建任务的时候,指定你自己的Request对象,在你自己的Request对象里面,添加okhttp信任所有证书的代码
from rxdownload.
https://39.165.164.20:8888/lingzhang_1.0_release.apk 就是这样的https 请求
from rxdownload.
ok 已经解决了 谢谢
from rxdownload.
Related Issues (20)
- Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. HOT 2
- Provide better Error messages
- 下载异常stream was reset: PROTOCOL_ERROR HOT 1
- How to sort list by it's download time? HOT 1
- How to delete single item from recorder database ?
- 大佬什么时候能升级rxjava3.0 HOT 1
- download keep suspending on download multiple files. HOT 1
- 配置文件都是同一个URL,所以每次不管有没有更新都识别为同一个文件,有办法关闭这个缓存吗? HOT 3
- 有时候会出现:FATAL EXCEPTION: RxCachedThreadScheduler-3 HOT 3
- Downloading files bigger than 15 mb doesn't seem to work on lower-end devices HOT 3
- UndeliverableException due to SocketException when cancel the download
- how to restart a download task with the same url after delete it
- It always timeout when I download AWS CDN resources with RxDownload4 HOT 4
- how to change request in rxdownload HOT 2
- download a large file with slow internet connection (for example GPRS) returns TimeoutException HOT 2
- 频繁点击清空缓存、下载出现崩溃,报错Fatal signal 7 (SIGBUS), code 2 (BUS_ADRERR) HOT 2
- 最大下载数限制设置未生效? HOT 7
- 删除后没有删除记录
- rxjava java.io.IOException: File name too long HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxdownload.