Здесь две проблемы.
Как указывает Zugwalt, вам нужно явно передавать переменные, на которые вы хотите сослаться, в рамках вашего потока.Он пропустил переменную CGI, эта область не существует в вашем потоке.Таким образом, мы передаем только то, что нам нужно использовать в потоке userAgent, strBaseURL и intGet.
Вторая проблема: после объединения ваши потоки не находятся в переменной области, они находятся в области cfthread, поэтомучитать их оттуда.
Исправленный код:
<cfloop index="intGet" from="1" to="2" step="1">
<!--- Start a new thread for this CFHttp call. Pass in user Agent, strBaseURL, and intGet --->
<cfthread action="run" name="objGet#intGet#" userAgent="#cgi.http_user_agent#" intGet="#intGet#" strBaseURL="#strBaseURL#">
<!--- Store the http request into the thread scope, so it will be visible after joining--->
<cfhttp method="GET" url="#strBaseURL & ((intGet - 1) * 10)#" userAgent="#userAgent#" result="thread.get#intGet#" />
</cfthread>
</cfloop>
<cfloop index="intGet" from="1" to="2" step="1">
<!--- Join each thread --->
<cfthread action="join" name="objGet#intGet#" />
<!--- Dump each named thread from the cfthread scope --->
<cfdump var="#cfthread['objGet#intGet#']#" />
</cfloop>