| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:006fe654-ef29-45e0-64a3-94f19cf1b1ea |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 9114:175A3:6E2A28:952BA4:6AFBF918 |
| html-safe-nonce | b4cfd385d60eea60b5f0cfd255b96e0903042510914aa94f90e4824014181386 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTE0OjE3NUEzOjZFMkEyODo5NTJCQTQ6NkFGQkY5MTgiLCJ2aXNpdG9yX2lkIjoiMTIxMTkxMzA3OTc4MDgwMDc5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ecd8819672c2ef666278edeb943d38354e98a47adc6524d0945e6636b3e6940f |
| hovercard-subject-tag | repository:69622658 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sunkejava/httpclientUtil |
| twitter:image | https://opengraph.githubassets.com/ab5044958824ea5072496e6ba8b5bebb484273da46bfab0bcf67c3f6ec738e4e/sunkejava/httpclientUtil |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab5044958824ea5072496e6ba8b5bebb484273da46bfab0bcf67c3f6ec738e4e/sunkejava/httpclientUtil |
| og:image:alt | 基于HttpClient-4.4.1、HttpAsyncClient-4.1封装的工具类。支持插件式配置Header、插件式配置httpclient对象,这样就可以方便地自定义header信息、配置ssl、配置proxy等。 - sunkejava/httpclientUtil |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-cache |
| go-import | github.com/sunkejava/httpclientUtil git https://github.com/sunkejava/httpclientUtil.git |
| octolytics-dimension-user_id | 16059692 |
| octolytics-dimension-user_login | sunkejava |
| octolytics-dimension-repository_id | 69622658 |
| octolytics-dimension-repository_nwo | sunkejava/httpclientUtil |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 46473766 |
| octolytics-dimension-repository_parent_nwo | Arronlong/httpclientutil |
| octolytics-dimension-repository_network_root_id | 46473766 |
| octolytics-dimension-repository_network_root_nwo | Arronlong/httpclientutil |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/sunkejava/httpclientUtil#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsunkejava%2FhttpclientUtil |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsunkejava%2FhttpclientUtil |
| Sign up | https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=sunkejava%2FhttpclientUtil |
| Reload | https://redirect.github.com/sunkejava/httpclientUtil |
| Reload | https://redirect.github.com/sunkejava/httpclientUtil |
| Reload | https://redirect.github.com/sunkejava/httpclientUtil |
| sunkejava | https://redirect.github.com/sunkejava |
| httpclientUtil | https://redirect.github.com/sunkejava/httpclientUtil |
| Code | https://redirect.github.com/sunkejava/httpclientUtil |
| Pull requests | https://redirect.github.com/sunkejava/httpclientUtil/pulls |
| Actions | https://redirect.github.com/sunkejava/httpclientUtil/actions |
| Projects | https://redirect.github.com/sunkejava/httpclientUtil/projects |
| Wiki | https://redirect.github.com/sunkejava/httpclientUtil/wiki |
| Security and quality | https://redirect.github.com/sunkejava/httpclientUtil/security |
| Insights | https://redirect.github.com/sunkejava/httpclientUtil/pulse |
| https://redirect.github.com/sunkejava/httpclientUtil |
| httpclientUtil | https://redirect.github.com/sunkejava/httpclientUtil |
| Arronlong/httpclientutil | https://redirect.github.com/Arronlong/httpclientutil |
| Notifications | https://redirect.github.com/login?return_to=%2Fsunkejava%2FhttpclientUtil |
| Fork0 (0) | https://redirect.github.com/login?return_to=%2Fsunkejava%2FhttpclientUtil |
| Star1 (1) | https://redirect.github.com/login?return_to=%2Fsunkejava%2FhttpclientUtil |
| blog.csdn.net/column/details/httpclient-arron.html | http://blog.csdn.net/column/details/httpclient-arron.html |
| Readme | https://redirect.github.com/sunkejava/httpclientUtil#readme-ov-file |
| Activity | https://redirect.github.com/sunkejava/httpclientUtil/activity |
| 0 forks | https://redirect.github.com/sunkejava/httpclientUtil/forks |
| Report repository | https://redirect.github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fsunkejava%2FhttpclientUtil&report=sunkejava+%28user%29 |
| Branches | https://redirect.github.com/sunkejava/httpclientUtil/branches |
| Tags | https://redirect.github.com/sunkejava/httpclientUtil/tags |
| https://redirect.github.com/sunkejava/httpclientUtil/branches |
| https://redirect.github.com/sunkejava/httpclientUtil/tags |
| 20 Commits | https://redirect.github.com/sunkejava/httpclientUtil/commits/master/ |
| https://redirect.github.com/sunkejava/httpclientUtil/commits/master/ |
| src | https://redirect.github.com/sunkejava/httpclientUtil/tree/master/src |
| src | https://redirect.github.com/sunkejava/httpclientUtil/tree/master/src |
| README.md | https://redirect.github.com/sunkejava/httpclientUtil/blob/master/README.md |
| README.md | https://redirect.github.com/sunkejava/httpclientUtil/blob/master/README.md |
| pom.xml | https://redirect.github.com/sunkejava/httpclientUtil/blob/master/pom.xml |
| pom.xml | https://redirect.github.com/sunkejava/httpclientUtil/blob/master/pom.xml |
| README | https://redirect.github.com/sunkejava/httpclientUtil |
| https://redirect.github.com/sunkejava/httpclientUtil#httpclientutil |
|
| http://blog.csdn.net/column/details/httpclient-arron.html |
| xiaoxian8023 | http://blog.csdn.net/xiaoxian8023 |
| 轻松把玩HttpClient | http://blog.csdn.net/column/details/httpclient-arron.html |
| RSS订阅 | http://blog.csdn.net/rss.html?type=column&column=httpclient-arron |
| https://redirect.github.com/sunkejava/httpclientUtil#最新更新文章 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之封装HttpClient工具类(七),新增验证码识别功能 | http://blog.csdn.net/xiaoxian8023/article/details/51606865 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之封装HttpClient工具类(六),封装输入参数,简化工具类 | http://blog.csdn.net/xiaoxian8023/article/details/50768320 |
| https://camo.githubusercontent.com/cfdec587fd359e25d4876c1f7a9fd48709d1bc8d61e07a43ca201e28a13121a1/687474703a2f2f7374617469632e626c6f672e6373646e2e6e65742f696d616765732f69636f6e2d7a6875616e6a69612e676966 |
| xiaoxian8023 | http://blog.csdn.net/xiaoxian8023 |
| 阅读(1244) | http://blog.csdn.net/xiaoxian8023/article/details/50768320 |
| 评论(5) | http://blog.csdn.net/xiaoxian8023/article/details/50768320#comments |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之封装HttpClient工具类(五),携带Cookie的请求 | http://blog.csdn.net/xiaoxian8023/article/details/50474987 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpAsyncClient之模拟post请求示例 | http://blog.csdn.net/xiaoxian8023/article/details/49949813 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之封装HttpClient工具类(四),单线程调用及多线程批量调用测试 | http://blog.csdn.net/xiaoxian8023/article/details/49910885 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之封装HttpClient工具类(三),插件式配置Header | http://blog.csdn.net/xiaoxian8023/article/details/49910127 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之封装HttpClient工具类(二),插件式配置HttpClient对象 | http://blog.csdn.net/xiaoxian8023/article/details/49909359 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之封装HttpClient工具类(一)(现有网上分享中的最强大的工具类) | http://blog.csdn.net/xiaoxian8023/article/details/49883113 |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之设置代理,可以访问FaceBook | http://blog.csdn.net/xiaoxian8023/article/details/49867257 |
| xiaoxian8023 | http://blog.csdn.net/xiaoxian8023 |
| 阅读(1624) | http://blog.csdn.net/xiaoxian8023/article/details/49867257 |
| 评论(1) | http://blog.csdn.net/xiaoxian8023/article/details/49867257#comments |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之配置ssl,采用设置信任自签名证书实现https | http://blog.csdn.net/xiaoxian8023/article/details/49866397 |
| xiaoxian8023 | http://blog.csdn.net/xiaoxian8023 |
| 阅读(1113) | http://blog.csdn.net/xiaoxian8023/article/details/49866397 |
| 评论(1) | http://blog.csdn.net/xiaoxian8023/article/details/49866397#comments |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 轻松把玩HttpClient之配置ssl,采用绕过证书验证实现https | http://blog.csdn.net/xiaoxian8023/article/details/49865335 |
| xiaoxian8023 | http://blog.csdn.net/xiaoxian8023 |
| 阅读(1588) | http://blog.csdn.net/xiaoxian8023/article/details/49863967 |
| 评论(0) | http://blog.csdn.net/xiaoxian8023/article/details/49863967#comments |
| [编程语言] | http://blog.csdn.net/code/column.html |
| 简单的利用UrlConnection,后台模拟http请求 | http://blog.csdn.net/xiaoxian8023/article/details/49785417 |
| xiaoxian8023 | http://blog.csdn.net/xiaoxian8023 |
| 阅读(1391) | http://blog.csdn.net/xiaoxian8023/article/details/43345717 |
| 评论(5) | http://blog.csdn.net/xiaoxian8023/article/details/43345717#comments |
| [编程语言] | http://blog.csdn.net/code/column.html |
| HttpClient3.x之Get请求和Post请求示例 | http://blog.csdn.net/xiaoxian8023/article/details/43345113 |
| https://redirect.github.com/sunkejava/httpclientUtil#--------------------编程语言------------轻松把玩httpclient之封装httpclient工具类七新增验证码识别功能----------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家----h1--------p这个httpclientutil工具类分享在github上已经半年多的时间了并且得到了不小的关注有25颗star被fork了38次有了大家的鼓励工具类一直也在完善中最近比较忙两个多月前的修改在今天刚修改测试完成今天再次分享给大家160-160-160-160验证码识别这项技术并不是本工具类的功能而是通过一个开源的api来识别验证码的这里做了一个简单的封装主要是用来解决登陆时的验证码的问题p----div-classabout_info--------span-classfl------------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a------------span-classtime2016-06-07-2305spannbspnbsp------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails51606865-target_blank-classview阅读3942anbspnbsp------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails51606865comments-target_blank-classcomment评论0a--------span----divdiv------编程语言----------轻松把玩httpclient之封装httpclient工具类六封装输入参数简化工具类-------------------p在写这个工具类的时候发现传入的参数太多以至于方法泛滥只一个send方法就有30多个所以对工具类进行了优化把输入参数封装在一个对象里这样以后再扩展输入参数直接修改这个类就ok了160-160-160-160不多说了先上代码-请求配置类author-arrondate-2016年2月2日-下午31432version-10pubxiaoxian80232016-02-29-2155阅读1244评论5------------------------编程语言---------轻松把玩httpclient之封装httpclient工具类五携带cookie的请求-------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家-h1--p最近更新了一下httpclientutil工具类代码主要是添加了一个参数httpcontext这个是用来干嘛的呢其实是用来保存和传递cookie所需要的因为我们有很多时候都需要登录然后才能请求一些想要的数据而在这以前使用httpclientutil工具类还不能办到现在更新了以后终于可以了160-160-160-160先说一下思路本次的demo就是获取csdn中的c币要想获取c币必须先登p-div-classabout_info-----span-classfl---------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a---------span-classtime2016-01-07-1145spannbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails50474987-target_blank-classview阅读1861anbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails50474987comments-target_blank-classcomment评论2a-----span-div------------------------编程语言---------轻松把玩httpasyncclient之模拟post请求示例-------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家-h1--p如果看到过我前些天写过的轻松把玩httpclient之模拟post请求示例这篇文章你再看本文就是小菜一碟了如果你顺便懂一些nio基本上是毫无压力了因为httpasyncclient相对于httpclient就多了一个nio这也是为什么支持异步的原因不过我有一个疑问虽说nio是同步非阻塞io但是httpasyncclient提供了回调的机制这点儿跟netty很像所以可以模拟p-div-classabout_info-----span-classfl---------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a---------span-classtime2015-11-23-0913spannbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49949813-target_blank-classview阅读2360anbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49949813comments-target_blank-classcomment评论5a-----span-div------------------------编程语言---------轻松把玩httpclient之封装httpclient工具类四单线程调用及多线程批量调用测试-------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家-h1--p本文主要来分享一下该工具类的测试结果工具类的整体源码不再单独分享源码基本上都已经在文章中了开始我们的测试单线程调用测试public-static-void-testone-throws-httpprocessexception--systemoutprintlnquot--------简单方式调用默认post--------quot-string-url--quothtp-div-classabout_info-----span-classfl---------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a---------span-classtime2015-11-19-1121spannbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49910885-target_blank-classview阅读1638anbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49910885comments-target_blank-classcomment评论0a-----span-div------------------------编程语言---------轻松把玩httpclient之封装httpclient工具类三插件式配置header-------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家-h1--p上篇文章介绍了插件式配置httpclient本文将介绍插件式配置header为什么要配置header在前面已经提到了还里再简单说一下要使用httpclient模拟请求去访问各种接口或者网站资源都有可能有各种限制比如说java客户端模拟访问csdn博客就必须设置user-agent否则就报错了还有各种其他情况必须的设置一些特定的header才能请求成功或者才能不出问题好了p-div-classabout_info-----span-classfl---------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a---------span-classtime2015-11-19-1120spannbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49910127-target_blank-classview阅读1547anbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49910127comments-target_blank-classcomment评论0a-----span-div------------------------编程语言---------轻松把玩httpclient之封装httpclient工具类二插件式配置httpclient对象-------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家-h1--p上一篇文章中简单分享一下封装httpclient工具类的思路及部分代码本文将分享如何实现插件式配置httpclient对象如果你看过我前面的几篇关于httpclient的文章或者官网示例应该都知道httpclient对象在创建时都可以设置各种参数但是却没有简单的进行封装比如对我来说比较重要的3个代理ssl包含绕过证书验证和自定义证书验证超时还需要自己写所以这里我就简单封p-div-classabout_info-----span-classfl---------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a---------span-classtime2015-11-19-1120spannbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49909359-target_blank-classview阅读1487anbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49909359comments-target_blank-classcomment评论0a-----span-div------------------------编程语言---------轻松把玩httpclient之封装httpclient工具类一现有网上分享中的最强大的工具类-------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家-h1--p搜了一下网络上别人封装的httpclient大部分特别简单有一些看起来比较高级但是用起来都不怎么好用调用关系不清楚结构有点混乱所以也就萌生了自己封装httpclient工具类的想法要做就做最好的本工具类支持插件式配置header插件式配置httpclient对象这样就可以方便地自定义header信息配置ssl配置proxy等是不是觉得说的有点悬乎了那就先看看调用吧p-div-classabout_info-----span-classfl---------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a---------span-classtime2015-11-19-1120spannbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49883113-target_blank-classview阅读2061anbspnbsp---------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49883113comments-target_blank-classcomment评论8a-----span-div------------------------编程语言---------轻松把玩httpclient之设置代理可以访问facebook-------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家-h1--p前面的文章介绍了一些httpclient的简单示例本文继续采用示例的方式来演示httpclient的功能在项目中我们可能会遇到这样的情况为了保证系统的安全性只允许使用特定的代理才可以访问而与这些系统使用httpclient进行交互时只能为其配置代理这里我们使用gogent代理访问脸书来模拟这种情况现在在浏览器上访问是可以访问的xiaoxian80232015-11-16-1727阅读1624评论1编程语言轻松把玩httpclient之配置ssl采用设置信任自签名证书实现https----------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家----h1--------p在上篇文章httpclient配置ssl实现https简单示例绕过证书验证中简单分享了一下如何绕过证书验证如果你想用httpclient访问一个网站但是对方的证书没有通过ca认证或者其他问题导致证书不被信任比如12306的证书就是这样的所以对于这样的情况你只能是选择绕过证书验证的方案了但是如果是自己用jdk或者其他工具生成的证书还是希望用其他方式认证自签名的证书这篇文xiaoxian80232015-11-16-1600阅读1113评论1编程语言轻松把玩httpclient之配置ssl采用绕过证书验证实现https----------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家----h1--------p上篇文章说道httpclient不能直接访问https的资源这次就来模拟一下环境然后配置https测试一下在前面的文章中分享了一篇自己生成并在tomcat中配置ssl的文章tomcat配置ssl大家可以据此来在本地配置https我已经配置好了效果是这样滴可以看到已经信任该证书显示浅绿色小锁浏览器可以正常访问现在我们用代码测试一下public-stp----div-classabout_info--------span-classfl------------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a------------span-classtime2015-11-16-1511spannbspnbsp------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49865335-target_blank-classview阅读1870anbspnbsp------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49865335comments-target_blank-classcomment评论0a--------span----divdivdiv-classblog_list----h1----------------a-hrefhttpblogcsdnnetcodecolumnhtml-classcategory编程语言a--------a-name49863967-hrefhttpblogcsdnnetxiaoxian8023articledetails49863967-target_blank轻松把玩httpclient之模拟post请求示例a----------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家----h1--------phttpclient-是-apache-jakarta-common-下的子项目可以用来提供高效的最新的功能丰富的支持-http-协议的客户端编程工具包并且它支持-http-协议最新的版本和建议许多需要后台模拟请求的系统或者框架都用的是httpclient所以作为一个java开发人员有必要学一学本文提供了一个简单的demo供初学者参考使用httpcliexiaoxian80232015-11-16-1323阅读1588评论0编程语言简单的利用urlconnection后台模拟http请求----------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家----h1--------p这两天在整理看httpclient然后想自己用urlconnection后台模拟实现http请求于是一个简单的小例子就新鲜出炉了支持代理哦public-class-simplehttptest-public-static-string-sendstring-urlstr-map-mapstring-encodingstring-bodyquotquotstrinp----p----p----div-classabout_info--------span-classfl------------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a------------span-classtime2015-11-11-1913spannbspnbsp------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49785417-target_blank-classview阅读1613anbspnbsp------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails49785417comments-target_blank-classcomment评论1a--------span----divdivdiv-classblog_list----h1----------------a-hrefhttpblogcsdnnetcodecolumnhtml-classcategory编程语言a--------a-name43345717-hrefhttpblogcsdnnetxiaoxian8023articledetails43345717-target_blankhttpclient3x中使用https的方法a----------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家----h1--------phttpclient请求https的实例import-javaxnetsslsslcontextimport-javaxnetssltrustmanagerimport-javaxnetsslx509trustmanagerimport-javasecuritycertcertificateexceptionimport-javasecurityxiaoxian80232015-01-31-2108阅读1391评论5编程语言httpclient3x之get请求和post请求示例----------------img-srchttpstaticblogcsdnnetimagesicon-zhuanjiagif-classblog-icons-alt专家-title专家----h1--------phttpclient的支持在http11规范中定义的所有的http方法get-head-post-put-delete-trace-和-options每有一个方法都有一个对应的类httpgethttpheadhttpposthttpputhttpdeletehttptrace和httpoptions所有的这些类均实现了httpurirequest接口故可以作为exp----p----p----div-classabout_info--------span-classfl------------a-hrefhttpblogcsdnnetxiaoxian8023-target_blank-classuser_namexiaoxian8023a------------span-classtime2015-01-31-2041span------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails43345113-target_blank-classview阅读894a------------a-hrefhttpblogcsdnnetxiaoxian8023articledetails43345113comments-target_blank-classcomment评论6a--------span----divdiv |
| blog.csdn.net/column/details/httpclient-arron.html | http://blog.csdn.net/column/details/httpclient-arron.html |
| Readme | https://redirect.github.com/sunkejava/httpclientUtil#readme-ov-file |
| Activity | https://redirect.github.com/sunkejava/httpclientUtil/activity |
| 0 forks | https://redirect.github.com/sunkejava/httpclientUtil/forks |
| Report repository | https://redirect.github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fsunkejava%2FhttpclientUtil&report=sunkejava+%28user%29 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |