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

cfhttp 'internal server error' with Flickr feed

Community Beginner ,
Jun 10, 2012 Jun 10, 2012

Hi all, I am trying to cfhttp 'get' a Flickr feed URL, but am seeing 'internal server error'.

The code is

<cfhttp url="http://api.flickr.com/services/feeds/photos_public.gne?id=flickr_userID" method="GET" resolveURL="yes"></cfhttp>

<cfscript>

    Content = trim(cfhttp.filecontent);

    Content = XMLParse(Content);

</cfscript>

where the flickr_userID parameter has the format nnnnnnnn@Lnn   (ie 8 digits plus @ symbol plus capital letter plus 2 digits).

At first I thought the problem arose from needing to add 'resolveURL = "yes"' to the cfhttp call, but adding this did not resolve.

So is there perhaps an issue with the encoding of the id parameter?

Any advice much appreciated thanks,

cf_rog

563
Translate
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

correct answers 1 Correct answer

Community Beginner , Jun 10, 2012 Jun 10, 2012

Think I've found the answer.   The default format for Flickr feeds is Atom, you have to add a 'format' parameter to the URL to specify other formats.

I tried changing the URL to

http://api.flickr.com/services/feeds/photos_public.gne?id=flickr_userID&format=rss2

and this has resolved the 'internal server error'.

Guess I should have read this page more closely  

http://www.flickr.com/services/feeds/


Translate
Community Beginner ,
Jun 10, 2012 Jun 10, 2012
LATEST

Think I've found the answer.   The default format for Flickr feeds is Atom, you have to add a 'format' parameter to the URL to specify other formats.

I tried changing the URL to

http://api.flickr.com/services/feeds/photos_public.gne?id=flickr_userID&format=rss2

and this has resolved the 'internal server error'.

Guess I should have read this page more closely  

http://www.flickr.com/services/feeds/


Translate
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