> I can't see how this is possible. On my remote server, I have > the file w.cfm - eventually it will have a load of <cfswitch> > <cfcase> statements, calling url.ca which will in turn load > the text file containing a WDDX packet. For now though, I'm > just working with one text file, wddx.txt. Here's how w.cfm > looks at the moment: > > <CFHEADER NAME="content-disposition" VALUE="attachment; > filename=#URL.ca#"> > <html> > <body> > > <cfcontent type="application/unknown" file="#URL.ca#" deletefile="No"> > > On my local server, my custom tag wants to use <cfhttp> to > call w.cfm such as www.myserver.com/w.cfm?ca=wddx.txt > > This should, in theory, load wddx.txt but it doesn't. The > custom tag spews out an XML parsing error, presumabely because > it isn't loading any/required WDDX packet.
The problem may be that you've got some HTML tags between your CFHEADER and CFCONTENT tags. When you're generating output with non-HTML MIME types, you have to be careful not to include anything that doesn't belong in your output - even things like carriage returns and spaces can make a difference sometimes. So, you might rewrite this as: <cfsetting showdebugoutput="false"> <cfheader name="Content-Disposition" value="attachment; filename=#URL.ca#"> <cfcontent type="application/unknown" file="#URL.ca#" deletefile="no"> Also, for debugging purposes, you might simply try running the file in your browser first. It's useful to break problems down into smaller pieces, and this is especially true when debugging CFHTTP problems. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

