Skip to main content
Inspiring
May 12, 2008
Question

Download complete CF page from server

  • May 12, 2008
  • 4 replies
  • 446 views
On a regular HTML page, the view source command shows you all the code beneath the page. Is there a way to do this with a .cfm page, so you can view all of the associated code and queries behind the page?
    This topic has been closed for replies.

    4 replies

    Inspiring
    May 16, 2008
    The only way to get access to that information is if you control the server the code resides on. In which case you have a bunch of options:

    1) Turning CF Debugging on gives you information about the code and queries used
    2) CFFILE will allow you to pull up the source code from another CF template.
    3) Load the whole thing onto your development machine, load up eclipse and start the CF 8 step debugger for a nice walk through the code.
    Inspiring
    May 12, 2008
    BKBK wrote:
    > You view the HTML source on the browser. However, the CFML code is on the
    > server. The Coldfusion application server generates HTML from the CFML, passes
    > it on to the web server which then serves it to the browser.

    Unless, of course, the server is not properly configured to process the
    CFML. Then the server happily sends the code to the browser as a text
    file. But this is not something a client can force a properly
    configured server to do.

    BKBK
    Community Expert
    Community Expert
    May 12, 2008
    You view the HTML source on the browser. However, the CFML code is on the server. The Coldfusion application server generates HTML from the CFML, passes it on to the web server which then serves it to the browser.



    Inspiring
    May 12, 2008
    thanks god, no! what a security nightmare that would be!
    if you know ftp details of the server, you could get it with cfftp, but
    i suspect it is not your server you want to get a cfm page from...

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/