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:
[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:
Comment