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
--------------//--------->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218705
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54