Apache Came组件http4的使用

http : For calling out to external HTTP servers using Apache HTTP Client 3.x

http4 : For calling out to external HTTP servers using Apache HTTP Client 4.x

其实是一样的,只是底层用的http client版本不一样


现在以http4为例子


示例一:http调用



	
	
	
		POST
	
	
	
		account=hongshu&client_id=111111&response_type=code
	
	
	
		http://www.oschina.net/action/openapi/news_list
	
	
	
		UTF-8
	
	
	
	
	
	




示例二:https调用



	
		
	



	
	
	
		POST
	
	
	
		account=hongshu&client_id=111111&response_type=code
	
	
	
		https://www.oschina.net/action/oauth2/authorize
	
	
	
		UTF-8
	
	
	
	


你可能感兴趣的:(Apache,Camel实战,Apache,Camel实战)