简体   繁体   中英

Cannot download file from a https address using android phone

  1. I set up an Apache server which accept a HTTPs connection (on my local)
  2. Create a very simple html file which contains this code: <a href="Menu.doc">download</a>
  3. Using PC, go to address ' https://localhost ', click on the link, I can download the file "Menu.doc".
  4. But when using native web browser or even chrome on an android phone, I can NOT download this file. I can see the "starting download" message, but then it "hang on" with state "in progress" forever.
  5. If I choose a download manager app (on my phone) such as ESdownloader, I can download it.
  6. When I try downloading a file from a HTTPS address ( https://cloudsecurityalliance.org/csaguide.pdf ) using this phone, everything is OK

Why and how to fix it? Maybe I need some config to my server or some code (PHP, Java) on the server side to handle the download request?

You https server is a certified authority signed or self-signed server? Maybe the problem is with the certificate. Please read this thread

https://code.google.com/p/android/issues/detail?id=5851

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM