Re: HTTP/1.1 301 with Magpie
"virtualdock" <[email protected]> Tue, 22 Feb 2005 16:13:03 -0000
| Newsgroups | gmane.network.syndication.rss.devel |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], Josh Sled <jsled@a...> wrote: > On Sat, 2005-02-19 at 09:22, Bob DEO wrote: > > > When I try to use the last version of Magpie, I've got a strange error (only > > with 1 server !) : > > > > Warning: MagpieRSS: Failed to fetch http://www.mediabb.com/backend-news.php3 > > (HTTP Response: HTTP/1.1 301 Moved Permanently ) in > > /home/dhordain/www/magpierss/rss_fetch.inc on line 238 > > bool(false) > > Note that I know nothing about Magpie, but 301 is HTTP's "moved > permanently" status code. It's not an error, per se, but it's usually > easier to implement some of HTTP's more useful responses as "errors" or > "exceptions" in most programming languages. > > It means that the resource you're trying to GET > [http://www.mediabb.com/backend-news.php3] has been moved somewhere; the > "Location" header should provide the new URL of the resource. See [1] > for more info. > > When I get that URL with `wget`, however, it retrieves fine with no > redirection. > > [1] http://www.w3.org/Protocols/rfc2616/rfc2616- sec10.html#sec10.3.2 > > ...jsled > > -- > http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo ${a} @${b}` Thank you for your help ! ... but when I run the script (magpie, to read the feed) on another server, I've got no problem... And when I read the http header of [http://www.mediabb.com/backend- news.php3], I've got : HTTP/1.1 200 OK Date: Tue, 22 Feb 2005 16:03:59 GMT Server: Apache Vary: Cookie,Accept-Encoding Connection: close Content-Type: text/xml Strange... Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/rss-dev/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/