RE: Passing XML to CF via HTTP Post

2003-09-26 Thread Dave Watts
> Now I am doing this with curl, and I am seeing errors in CF's > application log:> > "Expecting quoted value for attribute value version..."> > I launch curl like this - "curl -d "id=?xml version="1.0"> encoding="UTF-8"?>> TYPE="0"/>" localhost/index.cfm"> > CF is 6.1 Standard> > However, if I pass just the file name containing the XML to > CF and do XmlParse based on the variable created with CFFILE > reading file name, everything is fine. I do need to get it > working via the POST method though.Aren't you missing the opening bracket?"id=?xml..." should be "id=Dave Watts, CTO, Fig Leaf Softwarehttp://www.figleaf.com/voice: (202) 797-5496fax: (202) 797-5444
 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]



Re: Passing XML to CF via HTTP Post

2003-09-26 Thread stas
I found out what my issue was. Curl is expecting the content to beurlencoded, so it is stripping out double quotes from XML attributes. Istill don't have a solution, but at least I know CF isn't part of theproblem.- Original Message -From: "stas" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Thursday, September 25, 2003 11:42 AMSubject: Passing XML to CF via HTTP Post>> I first attempted this with Automate, but Automate's HTTP Post moduleisn't> working for me.>> Now I am doing this with curl, and I am seeing errors in CF's application> log:>> "Expecting quoted value for attribute value version...">> I launch curl like this - "curl -d "id=?xml version="1.0"> encoding="UTF-8"?>> TYPE="0"/>" localhost/index.cfm">> CF is 6.1 Standard>> However, if I pass just the file name containing the XML to CF and do> XmlParse based on the variable created with CFFILE reading file name,> everything is fine. I do need to get it working via the POST methodthough.>> Thanks for any tips!>
 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]



Re: Passing XML to CF via HTTP Post

2003-09-25 Thread stas
My mistake - I didn't want to put all of the XML in example so I copied the
beginning and typed in the closing tag manually. It is correct in the actual
file.

What I have is an Automate script that loops through directory of XML files
and launches curl passing the file contents to a CF script.


- Original Message -
From: "Massimo Foti" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 11:45 AM
Subject: Re: Passing XML to CF via HTTP Post


> > I launch curl like this - "curl -d "id=?xml version="1.0"
> > encoding="UTF-8"?> > TYPE="0"/>" localhost/index.cfm"
>
> XML is case sensitive.
> You can't open  then close it: 
>
> 
> Massimo Foti
> Certified Dreamweaver MX Developer
> Certified Advanced ColdFusion MX Developer
> http://www.massimocorner.com/
> 
>
>
> 
~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138444
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

ColdFusion MX 6.1, now 2.5 times faster. 
http://www.macromedia.com/software/coldfusion/productinfo/upgrade/jump/introducing.html?trackingid=ColdFusion_468x60g_HouseofFusion_carat_082803


Re: Passing XML to CF via HTTP Post

2003-09-25 Thread Massimo Foti
> I launch curl like this - "curl -d "id=?xml version="1.0"
> encoding="UTF-8"?> TYPE="0"/>" localhost/index.cfm"

XML is case sensitive. 
You can't open  then close it: 


Massimo Foti
Certified Dreamweaver MX Developer
Certified Advanced ColdFusion MX Developer
http://www.massimocorner.com/



~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138443
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

ColdFusion MX 6.1, now 2.5 times faster. 
http://www.macromedia.com/software/coldfusion/productinfo/upgrade/jump/introducing.html?trackingid=ColdFusion_468x60g_HouseofFusion_carat_082803


Passing XML to CF via HTTP Post

2003-09-25 Thread stas
I first attempted this with Automate, but Automate's HTTP Post module isn't
working for me.

Now I am doing this with curl, and I am seeing errors in CF's application
log:

"Expecting quoted value for attribute value version..."

I launch curl like this - "curl -d "id=?xml version="1.0"
encoding="UTF-8"?>" localhost/index.cfm"

CF is 6.1 Standard

However, if I pass just the file name containing the XML to CF and do
XmlParse based on the variable created with CFFILE reading file name,
everything is fine. I do need to get it working via the POST method though.

Thanks for any tips!




~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138442
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com