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

cfhttpparam not working for me

New Here ,
Oct 14, 2009 Oct 14, 2009

Hey guys - I wrote this to send some query string to a client, but it gives me a ColdFusion error. Invalid token 'c' found on line 65 at column 6. Not sure what this means, but there isn't anything in this position in my code.

Anyone know where I'm going wrong?

<cfhttp
method="Post"
url="https://gback.nowdirect.com/exec/gbackcoupon.tsb"

<cfhttpparam
url="?couponName=#couponName#&coupon=#coupon#&resa le=#resale#&resaleType=#resaleType#&numDays=#numDa ys#&qtyLimit=#qtyLimit#&description=#description#& username=#username#&password=#password#"
>

>

599
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
Contributor ,
Oct 14, 2009 Oct 14, 2009
LATEST

Wrap the CFHTTPPARAM, like this:

<cfhttp 
method="Post"
url="https://gback.nowdirect.com/exec/gbackcoupon.tsb">

<cfhttpparam
url="?couponName=#couponName#&coupon=#coupon#&resa le=#resale#&resaleType=#resaleType#&numDays=#numDa ys#&qtyLimit=#qtyLimit#&description=#description#& username=#username#&password=#password#"
>

</cfhttp>
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