> Ok, after testing further, it looks like the issue is with the cfhttpparams. > > This works: > <cfset testurl = > "#paypal_enviroment.api_url#? > user=#urlencodedformat(paypal_enviroment.api_user)#&pwd=#urlencodedformat(paypal_enviroment.api_pwd)#& > signature=#urlencodedformat(paypal_enviroment.api_signature)#&method=SetExpressCheckout&paymentaction=Authorization& > currencycode=USD&allownote=1&version=60.0"> > <cfhttp method="get" url="#testurl#" throwonerror="yes" /> > <cfdump var="#testurl#"><br><br> > <cfdump var="#cfhttp.filecontent#"><br><br> > > This does not. What am I doing wrong? > > <cfhttp method="get" url="#paypal_enviroment.api_url#" throwonerror="yes"> > <cfhttpparam type="url" name="user" > value="#urlencodedformat(paypal_enviroment.api_user)#"> > <cfhttpparam type="url" name="pwd" > value="#urlencodedformat(paypal_enviroment.api_pwd)#"> > <cfhttpparam type="url" name="signature" > value="#urlencodedformat(paypal_enviroment.api_signature)#"> > <cfhttpparam type="url" name="method" value="SetExpressCheckout"> > <cfhttpparam type="url" name="paymentaction" value="Authorization"> > <cfhttpparam type="url" name="currencycode" value="USD"> > <cfhttpparam type="url" name="allownote" value="1"> > <cfhttpparam type="url" name="version" value="60.0"> > </cfhttp> > <cfdump var="#cfhttp.filecontent#"><br><br> > <cfdump var="#paypal_enviroment#"><br><br> > > Is there any benefit/difference between the two methods?
The CFHTTPPARAM tag automatically encodes URL parameters unless you turn that off, so you're double-encoding some of them. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, o ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333164 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

