Not sure if it is just a typo when you posted but on your second cfhttp request you are specifying a 'name' attribute. That does not exist for that tag. From your code it looks like you are trying to assign the response to a different variable so you should use the 'result' attribute.
<cfhttp method="head" url="#newUrl#" resolveurl="no" throwonerror="no" name="newUrlCheck" />
It should be:
<cfhttp method="head" url="#newUrl#" resolveurl="no" throwonerror="no" result="newUrlCheck" />
Sorry just read documentation and the 'name' attribute does exist however the documentation states that it is only for GET and POST methods only.
Message was edited by: Miguel-F
... sadly, it never even makes it to that point (although I certainly made your suggested correction, thanks). It always times out at the first cfhttp call.... but only when it's running inside of the application.cfm, when run from other files it runs as expected. Makes me wonder about an infinite loop of some kind, am I using the correct vars to identify the requested page? I tested that and believe so but still, the timeout....
Thanks so much for your reply!
I also noticed that you are referencing a variable 'server_name'. How is that being set? Did you mean 'cgi.server_name' ?
Also, you can set the throwOnError to yes instead of no and see if you get any error details.
You can also set a timeout attribute on the cfhttp tag if you wish.
At this point I guess I would put a cftry/cfcatch block around that cfhttp call to see what it is complaining about.