淘宝APP下载地址:https://huodong.m.taobao.com/act/bzh0wh.html
如果使用电脑,在这个页面上点击“下载手机淘宝”,那么大概率是无法下载的。

问题

出于好奇(其实是解决问题,我需要下载这个APP),打开了 F12 开发者模式。
看到了控制台(Console)有奇怪的输出

初露端倪

1
2
Resource interpreted as Document but transferred with MIME type application/vnd.android.package-archive: "http://download.taobaocdn.com/wireless/taobao4android/latest/701483.apk".
Mixed Content: The site at 'https://huodong.m.taobao.com/' was loaded over a secure connection, but the file at 'http://download.taobaocdn.com/wireless/taobao4android/latest/701483.apk' was redirected through an insecure connection. This file should be served over HTTPS. This download has been blocked. See https://blog.chromium.org/2020/02/protecting-users-from-insecure.html for more details.

第一条信息的大概意思是,服务器的response信息中,表明的body的类型是 application/vnd.android.package-archive ,但是我们电脑上可能无法处理。
第二条信息的意思是,在 https 的网站上,使用了 http 这种 非安全 的链接,所以 下载取消 了。

那么,既然获取到了下载地址。其他的就是浮云了
真实的下载地址

总结

淘宝这样做,是为了方便Android的自动安装。
下载完成后可以调用本机的安装程序进行后续操作。还是挺人性化的。