×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

cfhttp

Using CFHHTP to submit XML by GUJUm0deL
Posted: 8 Jul 04

We take the XML content and enclose them inside of a <cfsavecontent> tag.  Doing so just encapsulates the entire XML data as one big string.

CODE


<cfsavecontent variable="submission">
<?xml version='1.0'?><Lead
type='TITLE'><DATA1><option1>#text#</option1><option2>#text2
#</option2></DATA1><DATA2><fname>#FirstName#</fname><lname>#
LastName#</lname><addr>#Address#</addr><city>#City#</city><s
tate>#State#</state><zip>#Zip#</zip></DATA2><DATA3><filetype
/><leadinshowmuch/></DATA3></TITLE>
</cfsavecontent>

Then we use the <cfhttp> tag to submit the data.  Using the POST method, and one CFHTTPPARAM to submit the data in.

CODE


  <cfhttp method="post" url="http://www.somesite.com/page1.aspx" throwonerror="no">
    <cfhttpparam name="vSending" type="xml" value="#submission#">
  </cfhttp>

This technique worked like a charm.

Back to Adobe FAQ Index
Back to Adobe Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close