Skip to main content
Known Participant
Feb 26, 2014 12:14 PM UTC
Question

CF10 CFHTTP returning bad/encrypted xml data?

The XML feed looks great, but when I do a simple http call to get the data, it is "encrypting" it or doing something odd.  Anyone know what causes this and what to do to fix it?


This here is what I am doing:


<cfset feedURL="http://api.walmartlabs.com/v1/feeds/items?apiKey=xxx&categoryId=xxx&format=xml">

<cfhttp method="get" url="#feedURL#" result="feedItems"></cfhttp>

<cfdump var="#feedItems#">

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    BKBK
    Community Expert
    Community Expert
    Feb 27, 2014 7:59 AM UTC

    Odd! Could you show us the dump in full? Looks like ColdFusion thinks the feed is a binary. What if you add the attribute getAsBinary="never" to the cfhttp tag?

    Translate
    JEFFMACEAuthor
    Known Participant
    Feb 27, 2014 8:27 AM UTC

    Here is the same exact code in CF 9.01

    I think this just started happening once I did the latest update.

    Translate
    BKBK
    Community Expert
    Community Expert
    Feb 27, 2014 9:03 AM UTC

    Plus, neither ColdFusion 9 nor ColdFusion 10 errors. It is therefore likely to be a bug in ColdFusion 10.

    I would suggest you file a bug report. In your report, mention the difference in the result between CF9 and 10, and include the above images.

    Translate