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

cfhttp post issue

Guest
Dec 21, 2009 Dec 21, 2009

i am posting couple form fileds through a CFHTTP to a vendor URL. some how even though i am sending only one post vendor is saying he is receive lots and lots of them. is there any thing i can do to find out how my CF server is behaving. like by any change is the CF server causing the issue. i am lost. can some one direct me...

TOPICS
Advanced techniques
355
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
Advisor ,
Dec 21, 2009 Dec 21, 2009

I suggest that you post the code you are using and describe how the code is intended to be used.

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
Guest
Dec 21, 2009 Dec 21, 2009

Here is the code..........

  <cfhttp method="Post"

   urlhttps://xyz.asp"

    <cfhttpparam type="Formfield"

      value="#Token1#"

      name="Token1">

    <cfhttpparam type="Formfield"

      value="#Token2#"

      name="Token2">

    <cfhttpparam type="Formfield"

      value="#RequestType#"

      name="RequestType">

    

    <cfhttpparam type="Formfield"

      value="YES"

      name="UpdateAccountList">

    <cfhttpparam type="Formfield"

      value="#AccountList#"

      name="AccountList">

    <cfhttpparam type="Formfield"

      value="YES"

      name="UpdateProfile">

    <cfhttpparam type="Formfield"

      value="#fname#"

      name="Fname">

    <cfhttpparam type="Formfield"

      value="#lname#"

      name="Lname">

    <cfhttpparam type="Formfield"

      value="#acctinfo.email#"

      name="Email">

  </cfhttp>

i want to do a post when ever i run this...is that not simple....any way let me know.

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
Valorous Hero ,
Dec 21, 2009 Dec 21, 2009
LATEST

It's that simple, generally.

There can be a bit of trickiness, if you have to import the SSL certificate to the Java Key Store so that ColdFusion can properly encrypt the post to the https url.

But if your problem is the other system getting multiple posts, then that would not be your issue.  For this case, you would need to show or describe what is the logic around this code that could be running the cfhttp tag repeatedly.

ColdFusion will not make multiple requests form a single tag.

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