Skip to main content
Known Participant
February 26, 2014
Question

CF10 CFHTTP returning bad/encrypted xml data?

  • February 26, 2014
  • 1 reply
  • 600 views

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 has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    February 27, 2014

    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?

    JEFFMACEAuthor
    Known Participant
    February 27, 2014

    Here is the same exact code in CF 9.01

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

    BKBK
    Community Expert
    Community Expert
    February 27, 2014

    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.