hi, running cool but it sometimes show error:
the code i am running is:
<cftry>
<cfhttp url="#trim(form.sharelink)#" method="get"
throwonerror="no" timeout="5"></cfhttp>
<cfset MetaContentStartIndex =
findNoCase('<title>', cfhttp.FileContent)>
<cfset MetaContentEndIndex = findNoCase('</title>',
cfhttp.FileContent, MetaContentStartIndex)>
<cfset MetaAmount =
mid(cfhttp.FileContent,MetaContentStartIndex,MetaContentEndIndex-MetaContentStartIndex+8)>
<cfset results =
"#Replace(MetaAmount,'<title>',','All')#">
<cfset mainresult =
"#Replace(results,'</title>',','All')#">
<cfcatch type="any">
<cfset err = 1>
</cfcatch>
</cftry>
and sometime i recieve the below type error:
The 2 parameter of the Mid function, which is now 0, must be
a non-negative integer