• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF10 CFHTTP returning bad/encrypted xml data?

Community Beginner ,
Feb 26, 2014 Feb 26, 2014

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?

2014-02-26_06-28-30.png

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#">

Views

548

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2014 Feb 26, 2014

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 27, 2014 Feb 27, 2014

Copy link to clipboard

Copied

Here is the same exact code in CF 9.01

2014-02-27_03-25-26.png

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 27, 2014 Feb 27, 2014

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 27, 2014 Feb 27, 2014

Copy link to clipboard

Copied

Also, i just tried the getAsBinary=never and it still returned the same craziness.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation