Stephen,
Apologies, I don't really know what I'm talking about. :o(
I can refer you to the thread that helped me:
http://snurl.com/6or
see Samuel Neff's answer. I was trying to use CFHTTP to post an xml string in a
formfield.
That didn't work. Now I'm using:
<cfobject name="objXMLHTTP" class="microsoft.xmlhttp" action="create" type="COM">
<cfscript>
objXMLHTTP.open("POST","#Attributes.ServerName#",false);
objXMLHTTP.setRequestHeader("Content-Type", "text/xml");
objXMLHTTP.send(XMLDataString);
</cfscript>
and that works a treat. If you can explain why it doesn't work in CFHTTP for CF5, or
if you have another solution to this, then please let me know.
Cheers,
Douglas
-----Original Message-----
From: Stephen Moretti [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2002 17:39
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] XML Format
>Just to let you know that I've discovered from the MM forums that you can't
do XML posts with
> CFHTTP in CF5, so I've resorted to using a COM object to post the data.
I'm not sure I follow that.....
Your code posts a form variable to a CF page, which takes that variable does
something with the contents (a query probably) and generates a bunch of XML.
The CFHTTP gets the contents of the page, which happens to be an XML packet,
but could be any old rubbish, and does a cfoutput of that in your page.
I'm not sure where XML posting comes into it......
What's actually wrong with the format of the "text" you get back from the
other server??
Regards
Stephen
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]