Bug 3165 - rss URL ending in .php fails to parse
: rss URL ending in .php fails to parse
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Formats
: 6.2.2
: Other Other
: P2 normal (vote)
: ---
Assigned To: Andy Grundman
:
Depends on: 3309
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-15 15:32 UTC by Kevin Pearsall
Modified: 2008-09-15 14:38 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pearsall 2006-03-15 15:32:52 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
Comment 1 Andy Grundman 2006-03-15 19:07:48 UTC
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.
Comment 2 Dan Sully 2006-03-15 22:22:23 UTC
$ 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.
Comment 3 Dan Sully 2006-04-22 14:46:49 UTC
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.
Comment 4 Andy Grundman 2006-04-28 17:43:03 UTC
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.
Comment 5 Chris Owens 2006-06-12 15:26:40 UTC
Verified fixed in SlimServer Version: 6.3.0 - 7895 - Windows XP - EN - cp1252
Comment 6 Chris Owens 2006-06-27 14:21:35 UTC
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.