文件名称:httpcomponents-client-4.3-bin
-
所属分类:
- 标签属性:
- 上传时间:2013-09-16
-
文件大小:3.93mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1、GET方式
第一步、创建一个客户端,类似于你用浏览器打开一个网页
HttpClient httpClient = new HttpClient()
第二步、创建一个GET方法,用来获取到你需要抓取的网页URL
GetMethod getMethod = new GetMethod("http://www.baidu.com")
第三步、获得网址的响应状态码,200表示请求成功
int statusCode = httpClient.executeMethod(getMethod)
第四步、获取网页的源码
byte[] responseBody = getMethod.getResponseBody()
第一步、创建一个客户端,类似于你用浏览器打开一个网页
HttpClient httpClient = new HttpClient()
第二步、创建一个GET方法,用来获取到你需要抓取的网页URL
GetMethod getMethod = new GetMethod("http://www.baidu.com")
第三步、获得网址的响应状态码,200表示请求成功
int statusCode = httpClient.executeMethod(getMethod)
第四步、获取网页的源码
byte[] responseBody = getMethod.getResponseBody()
(系统自动生成,下载前可以参看下载内容)
下载文件列表
RELEASE_NOTES.txt
LICENSE.txt
README.txt
NOTICE.txt
javadoc/
javadoc/help-doc.html
javadoc/deprecated-list.html
javadoc/index-all.html
javadoc/overview-frame.html
javadoc/overview-summary.html
javadoc/allclasses-noframe.html
javadoc/constant-values.html
javadoc/package-list
javadoc/overview-tree.html
javadoc/stylesheet.css
javadoc/allclasses-frame.html
javadoc/serialized-form.html
javadoc/index.html
javadoc/resources/
javadoc/resources/titlebar_end.gif
javadoc/resources/background.gif
javadoc/resources/tab.gif
javadoc/resources/titlebar.gif
javadoc/org/
javadoc/org/apache/
javadoc/org/apache/http/
javadoc/org/apache/http/entity/
javadoc/org/apache/http/entity/mime/
javadoc/org/apache/http/entity/mime/package-use.html
javadoc/org/apache/http/entity/mime/MultipartEntity.html
javadoc/org/apache/http/entity/mime/FormBodyPart.html
javadoc/org/apache/http/entity/mime/package-tree.html
javadoc/org/apache/http/entity/mime/MIME.html
javadoc/org/apache/http/entity/mime/package-frame.html
javadoc/org/apache/http/entity/mime/HttpMultipartMode.html
javadoc/org/apache/http/entity/mime/package-summary.html
javadoc/org/apache/http/entity/mime/HttpMultipart.html
javadoc/org/apache/http/entity/mime/MinimalField.html
javadoc/org/apache/http/entity/mime/Header.html
javadoc/org/apache/http/entity/mime/MultipartEntityBuilder.html
javadoc/org/apache/http/entity/mime/content/
javadoc/org/apache/http/entity/mime/content/FileBody.html
javadoc/org/apache/http/entity/mime/content/package-use.html
javadoc/org/apache/http/entity/mime/content/StringBody.html
javadoc/org/apache/http/entity/mime/content/InputStreamBody.html
javadoc/org/apache/http/entity/mime/content/ByteArrayBody.html
javadoc/org/apache/http/entity/mime/content/package-tree.html
javadoc/org/apache/http/entity/mime/content/AbstractContentBody.html
javadoc/org/apache/http/entity/mime/content/package-frame.html
javadoc/org/apache/http/entity/mime/content/ContentDescriptor.html
javadoc/org/apache/http/entity/mime/content/package-summary.html
javadoc/org/apache/http/entity/mime/content/ContentBody.html
javadoc/org/apache/http/entity/mime/content/class-use/
javadoc/org/apache/http/entity/mime/content/class-use/FileBody.html
javadoc/org/apache/http/entity/mime/content/class-use/StringBody.html
javadoc/org/apache/http/entity/mime/content/class-use/InputStreamBody.html
javadoc/org/apache/http/entity/mime/content/class-use/ByteArrayBody.html
javadoc/org/apache/http/entity/mime/content/class-use/AbstractContentBody.html
javadoc/org/apache/http/entity/mime/content/class-use/ContentDescriptor.html
javadoc/org/apache/http/entity/mime/content/class-use/ContentBody.html
javadoc/org/apache/http/entity/mime/class-use/
javadoc/org/apache/http/entity/mime/class-use/MultipartEntity.html
javadoc/org/apache/http/entity/mime/class-use/FormBodyPart.html
javadoc/org/apache/http/entity/mime/class-use/MIME.html
javadoc/org/apache/http/entity/mime/class-use/HttpMultipartMode.html
javadoc/org/apache/http/entity/mime/class-use/HttpMultipart.html
javadoc/org/apache/http/entity/mime/class-use/MinimalField.html
javadoc/org/apache/http/entity/mime/class-use/Header.html
javadoc/org/apache/http/entity/mime/class-use/MultipartEntityBuilder.html
javadoc/org/apache/http/impl/
javadoc/org/apache/http/impl/cookie/
javadoc/org/apache/http/impl/cookie/IgnoreSpec.html
javadoc/org/apache/http/impl/cookie/NetscapeDomainHandler.html
javadoc/org/apache/http/impl/cookie/RFC2109VersionHandler.html
javadoc/org/apache/http/impl/cookie/BasicPathHandler.html
javadoc/org/apache/http/impl/cookie/AbstractCookieSpec.html
javadoc/org/apache/http/impl/cookie/BasicSecureHandler.html
javadoc/org/apache/http/impl/cookie/AbstractCookieAttributeHandler.html
javadoc/org/apache/http/impl/cookie/package-use.html
javadoc/org/apache/http/impl/cookie/BasicClientCookie.html
javadoc/org/apache/http/impl/cookie/BasicMaxAgeHandler.html
javadoc/org/apache/http/impl/cookie/BasicClientCookie2.html
javadoc/org/apache/http/impl/cookie/PublicSuffixFilter.html
javadoc/org/apache/http/impl/cookie/BrowserCompatSpecFactory.SecurityLevel.html
javadoc/org/apache/http/impl/cookie/RFC2965DomainAttributeHandler.html
javadoc/org/apache/http/impl/cookie/NetscapeDraftHeaderParser.html
javadoc/org/apache/http/impl/cookie/BestMatchSpecFactory.html
javadoc/org/apache/http/impl/cookie/RFC2965SpecFactory.html
javadoc/org/apache/http/impl/cookie/RFC2109SpecFactory.html
javadoc/org/apache/http/impl/cookie/DateParseException.html
javadoc/org/apache/http/impl/cookie/BasicDomainHandler.html
javadoc/org/apache/http/impl/cookie/package-tree.html
javadoc/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.html
javadoc/org/apache/http/impl/cookie/BasicExpiresHandler.html
javadoc/org/apache/http/impl/cookie/BrowserCompatSpec.html
javadoc/org/apache/http/impl/cookie/package-frame.html
javadoc/org/apache/http/impl/cookie/package-summary.html
javadoc/org/apache/http/impl/cookie/BestMatchSpec.html
javadoc/org/apache/http/impl/cookie/BasicCommentHandler.html
javadoc/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.html
javadoc/org/apache/http/impl/cookie/CookieSpecBase.html
javadoc/org/a
LICENSE.txt
README.txt
NOTICE.txt
javadoc/
javadoc/help-doc.html
javadoc/deprecated-list.html
javadoc/index-all.html
javadoc/overview-frame.html
javadoc/overview-summary.html
javadoc/allclasses-noframe.html
javadoc/constant-values.html
javadoc/package-list
javadoc/overview-tree.html
javadoc/stylesheet.css
javadoc/allclasses-frame.html
javadoc/serialized-form.html
javadoc/index.html
javadoc/resources/
javadoc/resources/titlebar_end.gif
javadoc/resources/background.gif
javadoc/resources/tab.gif
javadoc/resources/titlebar.gif
javadoc/org/
javadoc/org/apache/
javadoc/org/apache/http/
javadoc/org/apache/http/entity/
javadoc/org/apache/http/entity/mime/
javadoc/org/apache/http/entity/mime/package-use.html
javadoc/org/apache/http/entity/mime/MultipartEntity.html
javadoc/org/apache/http/entity/mime/FormBodyPart.html
javadoc/org/apache/http/entity/mime/package-tree.html
javadoc/org/apache/http/entity/mime/MIME.html
javadoc/org/apache/http/entity/mime/package-frame.html
javadoc/org/apache/http/entity/mime/HttpMultipartMode.html
javadoc/org/apache/http/entity/mime/package-summary.html
javadoc/org/apache/http/entity/mime/HttpMultipart.html
javadoc/org/apache/http/entity/mime/MinimalField.html
javadoc/org/apache/http/entity/mime/Header.html
javadoc/org/apache/http/entity/mime/MultipartEntityBuilder.html
javadoc/org/apache/http/entity/mime/content/
javadoc/org/apache/http/entity/mime/content/FileBody.html
javadoc/org/apache/http/entity/mime/content/package-use.html
javadoc/org/apache/http/entity/mime/content/StringBody.html
javadoc/org/apache/http/entity/mime/content/InputStreamBody.html
javadoc/org/apache/http/entity/mime/content/ByteArrayBody.html
javadoc/org/apache/http/entity/mime/content/package-tree.html
javadoc/org/apache/http/entity/mime/content/AbstractContentBody.html
javadoc/org/apache/http/entity/mime/content/package-frame.html
javadoc/org/apache/http/entity/mime/content/ContentDescriptor.html
javadoc/org/apache/http/entity/mime/content/package-summary.html
javadoc/org/apache/http/entity/mime/content/ContentBody.html
javadoc/org/apache/http/entity/mime/content/class-use/
javadoc/org/apache/http/entity/mime/content/class-use/FileBody.html
javadoc/org/apache/http/entity/mime/content/class-use/StringBody.html
javadoc/org/apache/http/entity/mime/content/class-use/InputStreamBody.html
javadoc/org/apache/http/entity/mime/content/class-use/ByteArrayBody.html
javadoc/org/apache/http/entity/mime/content/class-use/AbstractContentBody.html
javadoc/org/apache/http/entity/mime/content/class-use/ContentDescriptor.html
javadoc/org/apache/http/entity/mime/content/class-use/ContentBody.html
javadoc/org/apache/http/entity/mime/class-use/
javadoc/org/apache/http/entity/mime/class-use/MultipartEntity.html
javadoc/org/apache/http/entity/mime/class-use/FormBodyPart.html
javadoc/org/apache/http/entity/mime/class-use/MIME.html
javadoc/org/apache/http/entity/mime/class-use/HttpMultipartMode.html
javadoc/org/apache/http/entity/mime/class-use/HttpMultipart.html
javadoc/org/apache/http/entity/mime/class-use/MinimalField.html
javadoc/org/apache/http/entity/mime/class-use/Header.html
javadoc/org/apache/http/entity/mime/class-use/MultipartEntityBuilder.html
javadoc/org/apache/http/impl/
javadoc/org/apache/http/impl/cookie/
javadoc/org/apache/http/impl/cookie/IgnoreSpec.html
javadoc/org/apache/http/impl/cookie/NetscapeDomainHandler.html
javadoc/org/apache/http/impl/cookie/RFC2109VersionHandler.html
javadoc/org/apache/http/impl/cookie/BasicPathHandler.html
javadoc/org/apache/http/impl/cookie/AbstractCookieSpec.html
javadoc/org/apache/http/impl/cookie/BasicSecureHandler.html
javadoc/org/apache/http/impl/cookie/AbstractCookieAttributeHandler.html
javadoc/org/apache/http/impl/cookie/package-use.html
javadoc/org/apache/http/impl/cookie/BasicClientCookie.html
javadoc/org/apache/http/impl/cookie/BasicMaxAgeHandler.html
javadoc/org/apache/http/impl/cookie/BasicClientCookie2.html
javadoc/org/apache/http/impl/cookie/PublicSuffixFilter.html
javadoc/org/apache/http/impl/cookie/BrowserCompatSpecFactory.SecurityLevel.html
javadoc/org/apache/http/impl/cookie/RFC2965DomainAttributeHandler.html
javadoc/org/apache/http/impl/cookie/NetscapeDraftHeaderParser.html
javadoc/org/apache/http/impl/cookie/BestMatchSpecFactory.html
javadoc/org/apache/http/impl/cookie/RFC2965SpecFactory.html
javadoc/org/apache/http/impl/cookie/RFC2109SpecFactory.html
javadoc/org/apache/http/impl/cookie/DateParseException.html
javadoc/org/apache/http/impl/cookie/BasicDomainHandler.html
javadoc/org/apache/http/impl/cookie/package-tree.html
javadoc/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.html
javadoc/org/apache/http/impl/cookie/BasicExpiresHandler.html
javadoc/org/apache/http/impl/cookie/BrowserCompatSpec.html
javadoc/org/apache/http/impl/cookie/package-frame.html
javadoc/org/apache/http/impl/cookie/package-summary.html
javadoc/org/apache/http/impl/cookie/BestMatchSpec.html
javadoc/org/apache/http/impl/cookie/BasicCommentHandler.html
javadoc/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.html
javadoc/org/apache/http/impl/cookie/CookieSpecBase.html
javadoc/org/a
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.