cf_armory

Ben Nadel rocks. I've been wondering what PHP and ASP folks have such an easy time with pulling WoW Armory information, but I was returning the fully transformed XML with CF. So I asked for Ben's help and he delivered the solution. It was so simple, but I still don't fully understand the problem.

Anyway, now I can start my work on cf_armory. See an ugly prototype of a heroic key finder.

<cffunction name="makeHTTPCall" returntype="struct">
   <cfargument name="url" required="true">

   <cfset var strUserAgent = (
      "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; " &
      "rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
      ) />

            
   <cfhttp
      url="#arguments.url#"
      method="GET"
      result="armoryXML"
      useragent="#strUserAgent#"
      />

   
   <cfreturn armoryXML>
</cffunction>

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner