Monday, July 13, 2009

Problem reading Google RSS from Java

I dont know why the google makes it a problem. But when you try to access a RSS feed posted by google from java application it gives the following error. Server returned HTTP response code: 403 for URL:

Here im using Rome to read the RSS feeds made by a google group. Here other than passing the url to XmlReader, im passing a URLConnection. But the difference is, here im faking this request as a request made by a Mozilla browser, by setting up the User-agent property.

reader = new XmlReader(urlConn);
SyndFeedInput input = new SyndFeedInput();
SyndFeed feed =; 

And i guess you cant make more than 1000 requests for the google per day. So dont make any applications which exceed that limit.

Enjoy !!


Mufthas Rasikim said...
This comment has been removed by the author.
Chanaka Rupasinghe said...

Thank you machan.
This is really valuable for us

Mufthas Rasikim said...