Women in Technology

Hear us Roar



Article:
  The New Bloglines Web Services
Subject:   A minor point...
Date:   2004-09-28 12:48:44
From:   jgroth
The sample code won't work if you need to use a proxy server to do http. Fortunately, its really easy to add. Here's my hack:

// Use HTTPClient for web requests since the server requires authentication
client = new HttpClient();
// Hack start...
hostConfig = new HostConfiguration();
hostConfig.setProxy("YOUR PROXY IP",YOUR_PROXY_PORT);
client.setHostConfiguration(hostConfig);
// Hack end

You'll also need to import the HostConfiguration class.


Otherwise, very cool demo of Bloglines web services (and groovy).

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Marc Hedlund photo A minor point...
    2004-09-28 13:52:53  Marc Hedlund | O'Reilly AuthorO'Reilly Blogger [View]

    Thanks for the code! That's helpful.

    -Marc