Copy link to clipboard
Copied
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#">
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Here is the same exact code in CF 9.01
I think this just started happening once I did the latest update.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Also, i just tried the getAsBinary=never and it still returned the same craziness.