线下版本维护
This commit is contained in:
		@@ -17,7 +17,7 @@ public class UrlFileUpload {
 | 
			
		||||
 | 
			
		||||
    public static String fileUpload(String FileUrl,String FileNamePath) throws IOException, InterruptedException {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        System.out.println("下载文件!");
 | 
			
		||||
        // 创建一个URL链接
 | 
			
		||||
        URL url = new URL(FileUrl);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -74,10 +74,9 @@ public class WeatherUtils {
 | 
			
		||||
            String strRead = null;
 | 
			
		||||
            URL url = new URL(serverURL);
 | 
			
		||||
            HttpURLConnection connection = (HttpURLConnection)url.openConnection();
 | 
			
		||||
            connection.setRequestMethod("POST");//请求post方式
 | 
			
		||||
            connection.setRequestMethod("POST");
 | 
			
		||||
            connection.setDoInput(true);
 | 
			
		||||
            connection.setDoOutput(true);
 | 
			
		||||
            //header内的的参数在这里set。||connection.setRequestProperty("健, "值");
 | 
			
		||||
            connection.setRequestProperty("Content-Type", "application/json");
 | 
			
		||||
            connection.connect();
 | 
			
		||||
            OutputStreamWriter writer = new OutputStreamWriter(connection.getOutputStream(),"UTF-8");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user