Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:37:53+00:00 2026-06-01T22:37:53+00:00

This question is a follow-up on this one: get google chrome to view an

  • 0

This question is a follow-up on this one:
get google chrome to view an rss feed

I copied the source code from this page (hope this is ok for the site-owner):
http://www.petefreitag.com/rss/.
I escaped all quotes and made a php file out of it. The file looks like this:

<?php

header('Content-Type: application/rss+xml');

echo "<?xml version=\"1.0\" ?>
<?xml-stylesheet type=\"text/css\" href=\"http://www.petefreitag.com/rss/simple_style.css\" ?>

<rss version=\"2.0\">
    <channel>
        <title>Pete Freitag's Homepage</title>
        <link>http://www.petefreitag.com/</link>
        <description>Covering ColdFusion, Java, Web Development, and other topics</description>
        <language>en-us</language>
        <lastBuildDate>Fri, 23 Mar 2012 18:57:00 GMT</lastBuildDate>
        <ttl>45</ttl>

        <item>
REST OF THE SOURCE CODE
</rss>
";
?>

Here you can see the result:
http://web.student.tuwien.ac.at/~e0250890/rsstest/test.php

However, on http://www.petefreitag.com/rss/ chrome views the page as rss feed, in my example it shows just the source code.

What is the difference and how can I force chrome to view the page as rss feed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:37:54+00:00Added an answer on June 1, 2026 at 10:37 pm

    Try changing the header to application/xml

    This worked for me by changing the header:

    <?php 
    header('Content-Type: application/xml');
    echo file_get_contents('http://web.student.tuwien.ac.at/~e0250890/rsstest/test.php');
    ?>
    

    Mozilla accepts a whole range of headers

    text/xml,application/xml,application/rss+xml,application/atom+xml

    But it seems chrome accepts only text/xml or application/xml

    Not 100% sure why, perhaps you should take it up with google ;p

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is a follow on from this one ... I am binding to
This is a follow-on question from the one I asked here . Can constraints
OK, this question is actually a follow-up question from my previous one: What would
this is a follow up question from this one , I don't want to
This is a follow-up question to this one . Consider this example: #include <iostream>
Just a follow up question to this one here => link Is it possible
This is like a follow-up question to this one . Basically what I'm doing
I have a follow-up question to this one . I created a new form,
I have a follow up question to this one . Now that I have
This is really a follow on question to a previous one , where I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.