Cannot parseWikipedia Atom feed

I’m using net/http to parse the rss and atom feeds of various sites.
So far I was successful in that process except for wikipedia. When I try
to access the feed url related to a particular topic, a wikipedia eror
page is displayed showing an access denied error. I dont know whether it
is the problem related to my code or whether I need any API to parse the
feeds. My code to parse the feed is:

http = Net::HTTP.start(, uri.port)
#making a request to the server
if uri.query != nil
response = http.get(uri.path+’?’+uri.query, ‘User-Agent’ =>
‘Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Windows XP)’)
response = http.get(uri.path, ‘User-Agent’ => ‘Mozilla/4.0
(compatible; MSIE 5.5; Windows NT 5.0; Windows XP)’)

and this is the error :
Request: POST,
from via (squid/2.7.STABLE6) to ()
Error: ERR_ACCESS_DENIED, errno [No Error] at Tue, 28 Apr 2009 08:07:28

Can somebody please give me a suggestion.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs