First, let’s see how you can post XML over HTTP to another page. This is very simple in ColdFusion:
<cfhttp url="url_to_post_to" method="post">
<cfhttpparam
type="XML"
name="XmlDoc"
value="#your_xml#">
</cfhttp>
Now, suppose you are posting the XML to a ColdFusion page. How would you read the XML from the HTTP POST body? Again, this is very simple in ColdFusion:
<cfset docContent = GetHTTPRequestData().content>
<cfset myDOM = XmlParse(docContent)>
and now you can manipulate the XML DOM, stored in myDOM, in any way you like.
<cfhttp> documentation
GetHTTPRequestData documentation
ColdFusion XML documentation
Possibly related:
- Sequential GUIDs
- FriendFeed Invites and Six Cool Twitter Applications
- Ajax bathroom cleaner and more
- Feed Overload
- Why I Switched to a Full-Text Feed
Tagged http, xml | Comments Closed | Trackbacks Closed


















Home > About This Post
This entry was posted by Eddie Awad on Wednesday, July 6th, 2005, at 3:44 pm, and was filed in ColdFusion, Tips.
Subscribe to the
RSS 2.0 feed for all comments to this post.
Comments Closed
Sorry, but comments have been closed.