
java – HTTP Get:只下载头文件? (HEAD不支持)
在我的代码中,我使用一些Http Get请求来将一些文件作为流来下载.我使用以下代码: public String getClassName(String url) throws ClientProtocolException, IOException { HttpResponse response = sendGetRequestJsonText(url); H
在我的代码中,我使用一些Http Get请求来将一些文件作为流来下载.我使用以下代码: public String getClassName(String url) throws ClientProtocolException, IOException { HttpResponse response = sendGetRequestJsonText(url); H