Andy, You can use cfhttpparam to build an HTTP request. Example: <cfhttp method="post" url="#requestURL#" resolveurl="false" timeout="20"> <cfhttpparam type="header" name="Content-Type" value="application/x-www-form-urlencoded" /> <cfhttpparam type="xml" name="Urlxml" value="#tostring(requestXML)#" />
</cfhttp> Hope this helps. Hua -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 11:41 AM To: CF-Talk Subject: transmitting XML using CFHTTP I need to transfer some data from our server to another server with a packet of XML. The transfer will send a string of plain text (XML), must be done with an encoding of application/x-www-form-urlencoded and a method of POST. I thought that cfhttp could do it, but I can't find where I can change the encoding and it appears that cfhttp HAS to send information with a variable name. This transmittion doesn't need a name, just the information sent to it. Is this possible with cfhttp? Here's the PHP we're using for comparison: <? // select XML from database $contents = "xmlString"; $host = "ssl://members.DOMAIN.com"; $port = "443"; $request = "POST /hdde/xml/udi.asp HTTP/1.0\nContent-type: application/x-www-form-urlencoded\nContent-length: " . strlen($contents) . "\n\n" . $contents; $this->socket = fsockopen($host, $port) or die('could not open ssl socket for DOMAIN'); fputs($this->socket, $request) or die('could not put to ssl socket for DOMAIN'); [EMAIL PROTECTED]($this->socket, 4096); if (strStr($results,'<Success>1</Success>')) { // success code here } else { // failure code here } ?> By the way, this is my first post on this list, so "hi". <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218707 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

