PHP, RSS, SSL, and Outlook 2007

Someone at work mentioned that Outlook was complaining about an RSS feed. The error message was "The link may not point to a valid RSS source". This was odd because the feed validated and every other feed reader was able to handle it. Even stranger, Outlook had no issues with the same feed if it was not coming from an https address.

After some experimentation, I tracked the problem down to caching. The feed was being generated by a PHP application that was using sessions. By default, PHP sets some http headers to prevent pages from being cached when sessions are used. Outlook 2007 could not handle an RSS feed coming from a server using SSL with caching requested off. The solution was to either turn off session handling when the request was for an RSS feed or change the headers before sent so that caching wasn't turned off. For this application doing the latter was easier.

Leave a comment

Recent Entries

  • Piwik and Elgg

    While Google Analytics may be the most popular analytics service, there are times when you want to use your own hosted solution (intranet, control over...

  • Elgg Unit Tests

    A new component in Elgg 1.7 will be a unit test framework (SimpleTest). I've written a skeleton example of how plugin authors can use the...

  • Debugging Elgg SQL Queries

    A little trick that I've learned for debugging a call to the Elgg API that involves a database call is to wrap it with $CONFIG->debug....

  • When Google Goes Down

    This morning Google Analytics wasn't responding. So many sites use it that it basically slowed down the entire Internet....

  • PHP, RSS, SSL, and Outlook 2007

    Someone at work mentioned that Outlook was complaining about an RSS feed. The error message was "The link may not point to a valid RSS...

Close