Package org.xlightweb.client

Examples of org.xlightweb.client.IHttpClientEndpoint.call()


 
  @Test
  public void testLiveGet2() throws Exception {
    IHttpClientEndpoint httpClient = new HttpClient();
 
    IHttpResponse response = httpClient.call(new GetRequest("http://xlightweb.org"));
    Assert.assertEquals(301, response.getStatus());
  }
 

View Full Code Here


  @Test
  public void testLiveGet() throws Exception {
    IHttpClientEndpoint httpClient = new HttpClient();
 
    IHttpResponse response = httpClient.call(new GetRequest("http://www.web.de/index.html"));
    Assert.assertEquals(302, response.getStatus());
  }
 
  @Test
  public void testLiveGet2() throws Exception {
View Full Code Here

 
  @Test
  public void testLiveGet2() throws Exception {
    IHttpClientEndpoint httpClient = new HttpClient();
 
    IHttpResponse response = httpClient.call(new GetRequest("http://sourceforge.net/project/stats/index.php?group_id=169583&ugn=xsocket"));
    Assert.assertEquals(200, response.getStatus());
  }
 

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.