# Testing RSS feeds on Tiger

**URL:** <https://www.ruby-forum.com/t/testing-rss-feeds-on-tiger/48590>\
**Category:** Ruby\
**Created:** [November 22, 2005, 3:09pm UTC](https://www.ruby-forum.com/t/testing-rss-feeds-on-tiger/48590 "2005-11-22T15:09:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratkins\_usenet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@ratkins\_usenet](https://www.ruby-forum.com/u/ratkins_usenet)\
**Post date:** [November 22, 2005, 3:09pm UTC](https://www.ruby-forum.com/t/testing-rss-feeds-on-tiger/48590/1 "2005-11-22T15:09:28Z")

</div>

I’m trying to write a RoR program to create an RSS feed. I’m pretty sure  
the XML it’s producing is valid (it looks fine when viewed in Firefox)  
but I get very strange behaviour when testing it in Safari.

If I hit “[http://localhost/rss/](http://localhost/rss/)”, Safari does a redirect to  
“feed:http://” and then of course fails. If I’m lucky (!) Safari then  
refuses to load any more web pages unless I restart it.

So I experimented by saving the “View Source” of the page (courtesy of  
Firefox) into a static file and put that in my ~/Sites dir. Now when I  
go to [http://localhost/~ratkins/example.xml](http://localhost/~ratkins/example.xml), I get a redirect to  
[http://example.xml/](http://example.xml/), which of course fails.

Can anybody tell me what’s going on?

Cheers, Robert.

---

<div class="post-metadata">

**Author:** ![ratkins\_usenet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@ratkins\_usenet](https://www.ruby-forum.com/u/ratkins_usenet)\
**Post date:** [November 22, 2005, 3:29pm UTC](https://www.ruby-forum.com/t/testing-rss-feeds-on-tiger/48590/2 "2005-11-22T15:29:36Z")

</div>

In article  
\<4383250f$0$13315$removed\_email\_address@domain.invalid

> ,  
> Robert A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m trying to write a RoR program to create an RSS feed. I’m pretty sure  
> the XML it’s producing is valid (it looks fine when viewed in Firefox)  
> but I get very strange behaviour when testing it in Safari.  
> […]  
> Can anybody tell me what’s going on?

Not from the info you gave, but there is one thing you should do: make  
sure that you know the XML you produce is valid, for instance using  
[http://www.feedvalidator.org/](http://www.feedvalidator.org/). In my experience, Safari is quite picky  
about feed formats, compared to NetNewsWire.

If that does not help, you should provide a short example of the XML you  
generate. I also would suggest doing that in a different newsgroup,  
since this has nothing to do with ruby (yes, you are using ruby to  
generate the XML, but as far as I can tell from your post, you do not  
have problems with rails or ruby) and this group already is quite busy.

Reinder

---

<div class="post-metadata">

**Author:** ![ratkins\_usenet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@ratkins\_usenet](https://www.ruby-forum.com/u/ratkins_usenet)\
**Post date:** [November 22, 2005, 3:41pm UTC](https://www.ruby-forum.com/t/testing-rss-feeds-on-tiger/48590/3 "2005-11-22T15:41:41Z")

</div>

Safari doesn’t like feeds from localhost. It’s a real pain. You might  
be able to do some hosts file or dns trickery (I usually test my XML  
feeds being served from my desktop (linux) to my laptop (osx))

---

<div class="post-metadata">

**Author:** ![ratkins\_usenet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@ratkins\_usenet](https://www.ruby-forum.com/u/ratkins_usenet)\
**Post date:** [November 22, 2005, 10:28pm UTC](https://www.ruby-forum.com/t/testing-rss-feeds-on-tiger/48590/4 "2005-11-22T22:28:32Z")

</div>

Safari has a bug prevents viewing feeds unless there’s at least one dot  
in the hostname. If you use 127.0.0.1 instead of localhost it should  
work.
