Menu

#3 Fetch RSS-feeds using HTTP Proxy Server

open
nobody
None
5
2012-01-18
2012-01-18
Anonymous
No

Hello,

I would like to fetch RSS feeds with Yarfraw using a HTTP proxy server. How can I do this using Yarfraw ?

I have tried this code, but it doesn't connect through the proxy:

HttpClientParams params = new HttpClientParams();
params.setSoTimeout(TIMEOUT);
params.setConnectionManagerTimeout(TIMEOUT);

HttpClient httpclient = new HttpClient();
httpclient.getHostConfiguration().setProxy("192.168.101.201", 8080);
httpclient.setParams(params);
GetMethod httpget = new GetMethod(feedlist.getFeedUrl());

FeedReader cr = new FeedReader(httpget);

Regards,
Andreas R.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB