CFHTTP request to YouTube return 408 Request Time-out errors
I am using CFHTTP to test for broken links. For some reason all youtube links return 408 Request Time-out error. Simply increasing the timeout value does not make any difference. Some other servers show the same behaviour.
Is there anything I can do to make it correctly detect if the link is OK? Maybe it requires a specific header to be sent with the request?
Here is the function I use:
<cffunction name="checkLink" access="remote" returnType="struct" returnFormat="json" output="no">
<cfargument name="link" type="string">
<cfset ret = structNew()>
<cfhttp url="#link#" method="head" timeout="1">
<cfset ret["code"] = cfhttp.statusCode>
<cfset ret["detail"] = cfhttp.errorDetail>
<cfreturn ret>
</cffunction>
These are some of the links that return the error:
Thank you!
