how to resolve this cfhttp issue
Hi i had site url like this
and in files folder we have like 10-15 text files like test1.txt,test2.txt,test3.txt...etc
i am using this code to check files exists in server and if file exits then display this user with below code
<cfhttp method="get" url="http://test.com/123/files/test1txt" />
<cfset header = cfhttp.header />
<cfif listContainsNoCase(header, "200 OK")>
<cflocation url="http://test.com/123/files/test1.txt">
<cfelse>
<cfset request.proginfo.pagemessage="The file was not found."/>
<cflocation url="stest.cfm">
</cfif>
I have a problem with this , if even my files are there in server i am getting message that file not exits but the file is there in sever and this happens some times and sometimes i am not seeing any error.
Is there any better way to do this as i am using coldfusion8 now.
Thanks
