fetching the cfm file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CF FAN
    New Member
    • Mar 2008
    • 50

    #1

    fetching the cfm file

    hi i am trying something like this but is not working..

    [CODE=cfm]<cfif document.record count IS NOT 0>
    <cfhttp method="get" url="http://abc.com/news" resolveurl="yes " timeout="60" throwonerror="y es"
    path="http://www.xyz.co.in/news" file="key.cfm"> </cfhttp>
    <cfsaveconten t variable="getda ta">
    <cfoutput>#cfht tp.FileContent# </cfoutput>
    </cfsavecontent>
    <cfif getData is false>
    <cflocation url="abc.cfm" addtoken="No">
    </cfif>
    <cfelse>
    <cflocation url="view.cfm?n ews_id=#url.key #" addtoken="No">
    </cfif>
    [/CODE]
    what i am doing is fetching the cfm file from the other website based on the url value. the files are stored in the news folder, i encounter several errors during this:

    one error was that i was looking for exception/erro.cfm file which is included in the abc.com website's application file as an include, can anyone guide me how can i do this:
    Last edited by acoder; Jun 12 '08, 10:31 AM. Reason: Added code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    When using "GET", you can specify the file name in the "path" attribute.

    What errors are you getting?

    Comment

    • CF FAN
      New Member
      • Mar 2008
      • 50

      #3
      Realy sorry..next time onwards i will surely take care of it

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        No problem, thanks. Did you manage to solve the problem?

        Comment

        Working...