随笔分类 -  HttpClient

摘要:错误的代码HttpClient httpclient = new DefaultHttpClient();HttpUriRequest request = new HttpGet(uri);HttpParams p = new BasicHttpParams();p.setParameter("pa... 阅读全文
posted @ 2014-05-23 16:44 大新博客 阅读(3770) 评论(1) 推荐(0) 编辑
摘要:http://www.cnblogs.com/zhcncn/archive/2013/05/09/3068318.html1. 下载Apache版本号为2.2.22.最好下载msi安装文件。下载地址为:http://www.apache.org/dist/httpd/binaries/win32/如... 阅读全文
posted @ 2014-04-19 22:48 大新博客 阅读(642) 评论(0) 推荐(0) 编辑
摘要:package org.apache.http.examples.client;import org.apache.http.HttpEntity;import org.apache.http.HttpHost;import org.apache.http.HttpResponse;import org.apache.http.auth.AuthScope;import org.apache.http.auth.UsernamePasswordCredentials;import org.apache.http.client.methods.HttpGet;import org.apache. 阅读全文
posted @ 2013-07-01 22:42 大新博客 阅读(1581) 评论(0) 推荐(0) 编辑
摘要:/* * ==================================================================== * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF... 阅读全文
posted @ 2013-07-01 17:15 大新博客 阅读(1171) 评论(0) 推荐(0) 编辑
摘要:/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lice.. 阅读全文
posted @ 2013-07-01 17:12 大新博客 阅读(836) 评论(0) 推荐(0) 编辑
摘要:/* * ==================================================================== * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF... 阅读全文
posted @ 2013-07-01 16:58 大新博客 阅读(826) 评论(0) 推荐(0) 编辑
摘要:public class Test { public static void main(String[] args) throws IOException { DefaultHttpClient httpclient = new DefaultHttpClient(); try { HttpPost httpost = new HttpPost("http://localhost:8080/task/index.jsp"); List nvps = new ArrayList (); ... 阅读全文
posted @ 2013-07-01 16:51 大新博客 阅读(1192) 评论(0) 推荐(0) 编辑
摘要:package org.apache.http.examples.client;import java.util.List;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.CookieStore;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.client.protocol. 阅读全文
posted @ 2013-07-01 16:43 大新博客 阅读(2616) 评论(0) 推荐(0) 编辑
摘要:package org.apache.http.examples.client;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.DefaultHttpClient;/** * This example demonstrates how to abort an HT 阅读全文
posted @ 2013-07-01 16:29 大新博客 阅读(504) 评论(0) 推荐(0) 编辑
摘要:package org.apache.http.examples.client;import java.io.IOException;import java.io.InputStream;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.DefaultHttpCli 阅读全文
posted @ 2013-07-01 16:27 大新博客 阅读(1242) 评论(0) 推荐(0) 编辑
摘要:/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lice.. 阅读全文
posted @ 2013-07-01 16:24 大新博客 阅读(448) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示