Listing 12. Create an HttpGet object.
清单12 .创建HttpGet对象。
Create an HttpGet object to retrieve information from the server, as in Listing 12.
创建一个HttpGet对象,从服务器检索信息,如清单12所示。
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对象。
应用推荐