First, set up an Http client by using the Apache HttpClient (4.0.1) library.
首先,使用ApacheHttpClient(4.0.1)库来创建一个HTTP客户端。
HttpClient USES an order of preference to select the correct authentication scheme.
HttpClient使用一个有序偏好来选择正确的认证机制。
You can leverage them to add OAuth authentication support to your HttpClient application.
您可以利用它们来添加oauth支持到您的HttpClient应用程序。
By default, only basic, digest, and NTLM authentication schemes are supported in HttpClient.
默认情况下,在HttpClient中仅支持基础认证、摘要认证和NTLM认证。
Now you can get the user profile via HttpClient using OAuth authentication, as shown in Listing 5.
现在您可以使用OAuth认证通过HttpClient获取用户配置文件,如清单5所示。
The following example shows how to get a user profile from LinkedIn using HttpClient with OAuth support.
以下示例展示如何使用有oauth支持的httpclient从linkedin获取一个用户的配置文件。
You retrieve dynamic data from Yahoo Finance (for example, the current price of the stock) using the HttpClient class.
您可以使用httpclient类从YahooFinance检索动态数据(例如,这支股票目前的价格)。
For each server interaction, each user reuses two Apache HttpClient objects to communicate with the server through HTTP.
对于每一次服务器交流,每一个用户都重复使用两个ApacheHttpClient对象来与服务器通过HTTP进行交流。
In this article, use the Apache HttpClient library to create a JAX-RS client for android-the popular smartphone platform.
在本文中,使用Apachehttpclient库为流行的智能手机平台Android创建一个JAX - RS客户端。
The HttpClient component can be of great use to anyone building client applications such as web browsers or REST clients.
而使用网络浏览器或者REST客户端的所有人,都可以尽量使用HttpClient构件。
This Part 3 describes the steps to test a secured web service using HttpClient and XMLUnit, which were introduced in Part 2.
第3部分(本教程)描述使用HttpClient和XMLUnit(在第2部分进行了介绍)测试安全Web服务的步骤。
Later in the series, you'll see one such toolkit provided by Apache Commons HttpClient (hereafter referred to as HttpClient) API.
在本系列的后面,将看到ApacheCommonsHttpClient(以下称为HttpClient) API所提供的这样一个工具。
Later in the series, you will see one such toolkit provided by Apache Commons HttpClient (hereafter referred to as HttpClient) API.
在本系列的后面,将看到ApacheCommonsHttpClient(以下称为HttpClient) API所提供的这样一个工具。
As in Listing 14, invoke the execute method of the HttpClient, with the HttpGet method as an argument, to retrieve the HttpResponse object.
如清单14清单14所示,调用HttpClient的execute方法,其中HttpGet方法作为参数,以检索HttpResponse对象。
Use the Apache HttpClient library for publishing updates to the Pachube system, and the Jetty lightweight Web server to implement the listener component.
使用Apachehttpclient库将更新发布到Pachube系统,并使用Jetty lightweightweb服务器实现监听组件。
Because Apache Commons HttpClient wants the POST request body to be done in NameValuePairs, we iterate through the elements of the map using the foreach call.
由于ApacheCommonsHttpClient要求POST请求的主体放在NameValuePairs中,因此我们使用foreach调用遍历map的元素。
Again, the HttpClient code will be similar to the previous code with the exception that now we have to pass the username and password in to the Twitter API as well.
再次,HttpClient代码将类似于之前的代码,除了将用户名和密码传递到Twitter API中之外。
HttpClient does not support preemptive authentication out of the box, but you can use a protocol interceptor to preemptively introduce an AuthScheme instance to the execution context.
HttpClient不支持开箱即用的先占式认证,但是您可以使用一个协议拦截器事先引入一个AuthScheme实例到执行上下文。
xSocket–http includes a HttpClient and helps to write event based HTTP network components such as HTTP proxies or COMET server applications by providing an asynchronous, streaming API.
xSocket–http包括一个HttpClient,而且通过提供异步的、流技术的API,有利于编写像HTTP代理、COMET服务器应用程序一样的基于事件的HTTP网络组件。
xSocket–http includes a HttpClient and helps to write event based HTTP network components such as HTTP proxies or COMET server applications by providing an asynchronous, streaming API.
xSocket–http包括一个HttpClient,而且通过提供异步的、流技术的API,有利于编写像HTTP代理、COMET服务器应用程序一样的基于事件的HTTP网络组件。
应用推荐