Skip to main content
Inspiring
August 3, 2007
Question

cffeed issue

  • August 3, 2007
  • 1 reply
  • 487 views
Hi,
I posted this issue during beta and even submitted a bug, but for some reason it wasnt fixed in the final version. Can someone help me out?

Code:
<cffeed action="read" source=" http://movies.msn.com/rss/topcelebs" name="feedInStruct" >

Just this piece of code gives an error:
Unable to read the source URL.
unknown compression method

That is a valid feed, i checked it. I'm having same problem with many different feeds. Not sure, whats going on.

Syed
    This topic has been closed for replies.

    1 reply

    Adobe Employee
    August 3, 2007
    Hi syed,
    We could not get this in time but there is a very simple workaround which you can use. The problem occurs because the http response from this URL comes as gzip compressed even though in header we say that we don't want compressed.
    So, workaround is to use cfhttp with cfhttpparam to accept gzip compressed response, write to a file and use that file to read the feed.
    Here is how the sample code will look.

    <cftry>
    <cffeed action="read" source=" http://movies.msn.com/rss/topcelebs" name="feedInStruct" >
    <cfcatch any>
    <cfhttp url=" http://movies.msn.com/rss/topcelebs" path="#tempDir#" file="#tempFileName#">
    <cfhttpparam type="header" name="Accept-Encoding" value="gzip">
    </cfhttp>
    <cffeed action="read" source="#tempFile#" name="feedInStruct" >
    </cfcatch>
    </cftry>