public class HttpClient extends Object
public static String get(String url, String encode) throws IOException
url - URLencode - 编码IOException - IOExceptionpublic static String post(String url, String data) throws IOException
url - URLdata - 数据内容IOException - IOExceptionpublic static String upload(String url, File file) throws IOException
url - URLfile - 文件IOException - IOExceptionpublic static void download(String url, File file) throws IOException
url - URLfile - 保存文件IOException - IOExceptionCopyright © 2020. All Rights Reserved.