title: cfhttp and cfhttpparam in ColdFusion
body: <p>I have some XMl data, I want to use the XML data to be posted to a scheduler job so using cfhttp and cfhttpparam. But for reason after running this code I was not able to schedule a job in one of my site. Tried all the options with formfields, url and xml with no success. I was saving all my data into a xml variable using cfsavecontent and using that variable to pass into cfhttparam value. Not sure what Am I doing wrong here. Here is the below code</p>
  
  <pre><code>&lt;cfsavecontent variable="getAllValues"&gt;
      &lt;start_job job="/cf/ecs/get_ecspseg1_data"&gt;
          &lt;params&gt;
          &lt;param name="1_script" value="#script#" /&gt;
          &lt;param name="2_login" value="#login#"/&gt;
          &lt;param name="3_customer" value="#customer#"/&gt;
          &lt;param name="4_account" value="#account#"/&gt;
          &lt;param name="5_begdate" value="#begdate#"/&gt;
          &lt;param name="6_enddate" value="#enddate#"/&gt;
          &lt;/params&gt;
      &lt;/start_job&gt;
  &lt;/cfsavecontent&gt;
  
  &lt;cfhttp url="http://ecs" port="4444" username="test" authType = "BASIC" password="testing*1" method="post"&gt;
      &lt;cfhttpparam type="xml" name="testing" value="#ToString(getAllValues)#"/&gt;
  &lt;/cfhttp&gt;
  </code></pre>
  
  <p>here is the updated code:</p>
  
  <pre><code>&lt;cfsavecontent variable="getAllValues"&gt;
      &lt;start_job job="/cf/smartecs/get_pseg1_data"&gt;
          &lt;params&gt;
          &lt;param name="1_script" value="#script#" /&gt;
          &lt;param name="2_login" value="#login#"/&gt;
          &lt;param name="3_customer" value="#customer#"/&gt;
          &lt;param name="4_account" value="#account#"/&gt;
          &lt;param name="5_begdate" value="#begdate#"/&gt;
          &lt;param name="6_enddate" value="#enddate#"/&gt;
          &lt;/params&gt;
      &lt;/start_job&gt;
  &lt;/cfsavecontent&gt;
  
  &lt;cfhttp url="http://10.xxx.xxx.xxx" port="4444" username="myusername" authType = "BASIC" password="mypassword" method="post" &gt;
      &lt;cfhttpparam type="header" name="Content-Type" value="application/octet-stream"&gt;
      &lt;cfhttpparam type="body" name="testing"  value="#getAllValues#"/&gt;
  &lt;/cfhttp&gt;
  </code></pre>