I found a simple download manager here. It can download from HTTP sites, but doesn't support HTTPS sites. How can I modify it to support HTTPS links?
Asked
Active
Viewed 1,487 times
0
-
Did you see the line about verifyurl. It checks if the protocol is http explicitly. Try removing it. – uncaught_exceptions Mar 02 '11 at 05:15
-
while you may have a specific scenario, this is just the same issue as opening an HTTPS connection in java. You need a trust manager to do that. – setzamora Mar 02 '11 at 05:18
2 Answers
1
Yes it does. Just try an HTTPS URL. The only possible issue will be whether it trusts the server's certificate.

user207421
- 305,947
- 44
- 307
- 483
-
I do not think so. // Verify download URL. private URL verifyUrl(String url) { // Only allow HTTP URLs. if (!url.toLowerCase().startsWith("http://")) return null; – uncaught_exceptions Mar 02 '11 at 05:14
-
-1
This answer will help you.
-
in addition to EJP's answer, this will allow you to accept untrusted certificates. – setzamora Mar 02 '11 at 05:24
-
-
Ok, I removed the explicit HTTP check, but now I'm stuck on the SSL stuff. – Dennis Mar 02 '11 at 05:43