随笔分类 - HttpClient
摘要:public class fanwe_login_database { //读取数据库的方法 public static Object[][] getTestData(String tablename) throws Exception { //声明MySQL的数据驱动 String diver =
阅读全文
摘要:import com.cxy_fanwe.common.test_fanwe_qiantai;import org.apache.http.Header;import org.apache.http.client.methods.CloseableHttpResponse;import org.ap
阅读全文
摘要:public class Httpclient_post { private ResourceBundle bundle; private String url; private BasicCookieStore store; //方法执行前先读取resource文件夹下的application文件
阅读全文
摘要://1.get请求无参数@Testpublic void testGet() throws IOException { String result; HttpGet get = new HttpGet("http://www.baidu.com"); HttpClient client = Http
阅读全文

浙公网安备 33010602011771号