用java生成私有资源的下载链接,再用浏览器get,状态码404,内容{"error":"no such domain"}
public static void main(String[] args) throws AuthException, EncoderException {
Config.ACCESS_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
Config.SECRET_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
Mac mac = new Mac(Config.ACCESS_KEY, Config.SECRET_KEY);
String baseUrl = URLUtils.makeBaseUrl("cornertech.qiniudn.com", "linus.jpeg");
GetPolicy getPolicy = new GetPolicy();
String downloadUrl = getPolicy.makeRequest(baseUrl, mac);
System.out.println(downloadUrl);
// 获取下载的url后,用浏览器打开,获取不到资源
// 请问这段代码有什么错误吗
// 空间是私有的
}
下载 404 java no-such-domain 私有资源
barren
11 years, 4 months ago