[英]how can I download a file from a password protected folder in java
want to download a file from a online server and I don't want it to be acessible outside my application so I have protected the folder using the control panel , now I need to know how can I acccess and download that file in my java program ? 我想从在线服务器上下载文件,但我不希望它在我的应用程序外部访问,因此我已经使用控制面板保护了该文件夹,现在我需要知道如何访问该文件并将其下载到我的Java程序中? Its an android app that downloads a database.
它是一个可下载数据库的android应用。 My situation is that I have two databases, one for the free app and another for the paid version.And I dont want people downloading the paid version to the pc and using them on the free version app.Is there another easy way ?
我的情况是我有两个数据库,一个用于免费应用程序,另一个用于付费版本。我不希望人们将付费版本下载到PC上并在免费版本应用程序上使用它们,还有另外一种简单的方法吗?
Please see the Apache HttpClient Examples, Client authentication . 请参阅Apache HttpClient示例,客户端身份验证 。 Android ships with these libraries by default.
Android默认随附这些库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.