> I've been messing around with cfhttp to grab content locally > to get the dynamic content and write it to a static page. > > What I've been trying to do is to find out if there is a way > to get cfhttp to save the page without parsing the actual cfm code.. > > Basicly, the page includes a simple cfmail form. At the > beginning, it checks to see if the form was submitted, if > not, is will display the form. However, when I crab the page > via cfhttp, it removes the actual cfml code and only the form > is contained in the file so it won't work. > > Is there anyway to put something like a start and end comment > into the actual page so that cfhttp will parse everything but > still leave the code intact between the start and end tags?
CFHTTP doesn't parse your CF code. It acts just like a browser - it requests a URL, and gives you whatever is returned from that URL. If you use CFHTTP to fetch a CF URL, the CF server will process the request just like if you'd made it from a browser. So, the short answer is, no, you can't get CFHTTP to behave the way you want it to. If you want to be able to fetch the CF code, and you're running both scripts on the same server, use CFFILE instead of CFHTTP. If the scripts are on different servers, you're out of luck unless you control both servers - in that case, you could write one program to read another using CFFILE, then call that program from the other server using CFHTTP. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236100 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