Testing RSS feeds on Tiger

R

Robert Atkins

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/", 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, I get a redirect to
http://example.xml/, which of course fails.

Can anybody tell me what's going on?

Cheers, Robert.
 
R

Reinder Verlinde

<4383250f$0$13315$61c65585@un-2park-reader-01.sydney.pipenetworks.com.au
Robert Atkins said:
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/>. 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
 
H

Hans Fugal

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))
 
A

ajwitte

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top