Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: contentExchange is missing from httpClient.send();

...

Code Block
public static void main(String[] args)
        {
		HttpClient httpClient = new HttpClient();
                //set up httpClient
                httpClient.start();
		ContentExchange contentExchange = new ContentExchange();
                httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
		contentExchange.setURL("http://slashdot.org");
                httpClient.send(contentExchange);
                contentExchange.waitForDone();
		System.err.println("Response status: "+contentExchange.getResponseStatus());
	}
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery