| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jun 2010
Posts: 42
![]() | 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 |
| | |
| | #2 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: ~$
Posts: 656
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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
Last edited by amoeba; 08-10-2010 at 11:58 PM.
|
| | |