Skip to content

The referrer header causes strange behavior #224

@bellostom

Description

@bellostom

Hi
The below feed URL is correct and should be parsed with no problem.

http://www.telegraphindia.com/feeds/rss.jsp?id=4

However, passing it to simplepie returns no data.
After a lot of debugging, I saw that the response I got from their server was actually html, which meant
that they redirected my original request for the feed.
Finally, I ended up commenting out the

curl_setopt($fp, CURLOPT_REFERER, $url);

in the SimplePie_File constructor and that fixed the issue.

Apparently, there is some bizarre server side logic on their end also, but I cannot think of a reason why this header is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions