NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page How to find out default filename of RSS feeds

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 08-10-2010, 10:44 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Jun 2010
Posts: 42
ChinaMobi is an unknown quantity at this point
 



How to find out default filename of RSS feeds


When you see an RSS feed URL ending with a directory and then a slash, how can you figure out the actual file of the RSS feed?

For example, this page has a number of RSS feeds. If I click METRO, my Internet Explorer 7 correctly displays an XML file of RSS feeds, and the URL bar shows the address as:

h t t p://www.shanghaidaily.com/rss/Metro/

In the case, what is the actual file of the RSS feeds. I tried the following names and they all failed.

http://www.shanghaidaily.com/rss/Metro/Metro.html
????: NamePros.com http://www.namepros.com/programming/671622-how-find-out-default-filename-rss.html
http://www.shanghaidaily.com/rss/Metro/Metro.htm
http://www.shanghaidaily.com/rss/Metro/Metro.xml
http://www.shanghaidaily.com/rss/Metro/Index.html
http://www.shanghaidaily.com/rss/Metro/Index.htm
ChinaMobi is offline   Reply With Quote
Old 08-10-2010, 11:55 PM   #2 (permalink)
NamePros Regular
 
amoeba's Avatar
Join Date: Sep 2005
Location: ~$
Posts: 656
amoeba is a splendid one to beholdamoeba is a splendid one to beholdamoeba is a splendid one to beholdamoeba is a splendid one to beholdamoeba is a splendid one to beholdamoeba is a splendid one to beholdamoeba is a splendid one to behold
 



The address you posted, ending with /Metro/, is the correct url. On the Web, there's not always necessarily a connection between the server's filesystem layout and the URL structure. There's no need to append a filename. If you are saving the results locally, you could save it with a .xml suffix (or whatever suffix you want).
????: NamePros.com http://www.namepros.com/showthread.php?t=671622

Here's a curl session from my linux box verifying that (see the Content-Type header):
Code:
$ curl -LI http://www.shanghaidaily.com/rss/Metro/
HTTP/1.0 200 OK
Date: Wed, 11 Aug 2010 06:53:51 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 32747
Content-Type: text/xml
Set-Cookie: ASPSESSIONIDCQTDSACR=HMAOONPAGGPPIJDPENDCHCHI; path=/
Cache-Control: private
Powered-By-ChinaCache: MISS from USA-NE-1-3H1
Connection: close
__________________
[ syzygy ] [ free public DNS service ]
Last edited by amoeba; 08-10-2010 at 11:58 PM.
amoeba is online now   Reply With Quote
Old 08-11-2010, 12:50 AM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Jun 2010
Posts: 42
ChinaMobi is an unknown quantity at this point
 



Thanks for the explanation. Much appreciated.
ChinaMobi is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:37 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger