2 Replies Latest reply on Apr 28, 2008 8:57 AM by mediablur

    Dynamic Parameters for a CFHTTP POST Request

    mediablur Level 1
      I need to call a service using CFHTTP (Post) but the parameters passed to the service are dynamic so there is no way to create a static list of CFHTTPPARAM tags. Actually, there are some static parameters but there will always be dynamic parameters that are included in the request based on the values defined for the static parameters.

      My question is how do I pass form data in a CFHTTP POST request when the parameters that are to be passed are not known in advance? I see that there is a type attribute for the CFHTTPPARAM tag of "head" and "body" so I was thinking it might be possible to manually build the data that is passed, but are what is the proper way to pass form parameters if I construct the "head" and "body" data myself?