| | |
| | | // * @param parameter |
| | | * @throws Exception |
| | | */ |
| | | public static String sendDeleteRequest(String url, String ossId) throws IOException { |
| | | public static HttpResponse sendDeleteRequest(String url, String ossId) throws IOException { |
| | | org.apache.http.client.HttpClient httpClient = HttpClientBuilder.create().build(); |
| | | HttpPost httpPost = new HttpPost(url); |
| | | |
| | |
| | | httpPost.setEntity(multipart); |
| | | |
| | | HttpResponse response = httpClient.execute(httpPost); |
| | | String responseBody = EntityUtils.toString(response.getEntity()); |
| | | System.out.println("Response: " + responseBody); |
| | | return responseBody; |
| | | return response; |
| | | |
| | | } |
| | | |
| | | |