Bugzilla – Bug 3165
rss URL ending in .php fails to parse
Last modified: 2008-09-15 14:38:25 UTC
if you use the URL in a web browser you see the XML... but could we parse past it? or what? the URL is: http://trafiken.nu/Sthlm/RSS/Vagtrafik/index.php
Sending this over to Dan. It looks like this server is refusing to talk to SlimServer, or is broken in some way. Don't think the fact that it's a php page has anything to do with it. 2006-03-15 22:04:46.3237 RssNews: getting feed from http://trafiken.nu/Sthlm/RSS/Vagtrafik/index.php 2006-03-15 22:04:46.3319 Opening connection to http://trafiken.nu/Sthlm/RSS/Vagtrafik/index.php: [trafiken.nu on port 80 with path /Sthlm/RSS/Vagtrafik/index.php with timeout 5] 2006-03-15 22:04:46.5460 Request: GET /Sthlm/RSS/Vagtrafik/index.php HTTP/1.0 Accept: */* Cache-Control: no-cache User-Agent: iTunes/4.7.1 (Linux; N; Debian; i686-linux; EN; utf8) SlimServer/6.5b1-sn/ Icy-MetaData: 1 Connection: close Host: trafiken.nu 2006-03-15 22:04:46.6841 Response: 2006-03-15 22:04:46.6844 Invalid response code () from remote stream http://trafiken.nu/Sthlm/RSS/Vagtrafik/index.php 2006-03-15 22:04:46.6852 RssNews.pm failed to retrieve news from http://trafiken.nu/Sthlm/RSS/Vagtrafik/index.php.
$ telnet trafiken.nu 80 Trying 147.13.206.71... Connected to trafiken.nu. Escape character is '^]'. GET /Sthlm/RSS/Vagtrafik/index.php HTTP/1.0 HTTP/1.1 403 Forbidden Date: Thu, 16 Mar 2006 06:21:16 GMT Server: Apache Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>403 Forbidden</TITLE> </HEAD><BODY> <H1>Forbidden</H1> You don't have permission to access /Sthlm/RSS/Vagtrafik/index.php on this server.<P> <HR> <ADDRESS>Apache/1.3.29 Server at w3trafik.trafiken.nu Port 80</ADDRESS> </BODY></HTML> Connection closed by foreign host. 'nuff said.
The remote webserver doesn't like iTunes as a User-Agent. Andy will be converting the RSS Plugin to use the AsyncHTTP infrastructure, which will allow a custom User-Agent to be passed.
Fixed. RSS feeds now use a Mozilla/5.0 user-agent instead of iTunes. This particular feed actually also failed when just given our Icy-Metadata header, so RSS also removes that header.
Verified fixed in SlimServer Version: 6.3.0 - 7895 - Windows XP - EN - cp1252
This bug fix is now part of a released version, and so has been marked closed. If you are still experiencing this problem, please reopen the bug.