Question
CFC problem ??
I have the following CFC:
<cfcomponent displayname="getURL">
<cffunction name="get" access="public" returntype="string">
<cfhttp
url="https://www.memberst.com/Programs/Redirector.aspx?cid=2081"
redirect="no" port="443"></cfhttp>
<cfset wholeStringLength=len(cfhttp.responseHeader.Location)>
<cfset urlString=findnocase("=",cfhttp.responseHeader.Location)>
<cfset returnString=trim(mid(cfhttp.responseHeader.Location,(urlString
+ 1),wholeStringLength))>
<cfreturn returnString>
</cffunction>
</cfcomponent>
It had been working earlier today, and now I'm getting a message that says:
Element RESPONSEHEADER.LOCATION is undefined in CFHTTP
If I go to the url listed in the cfc, the
https://www.memberst.com/Programs/Redirector.aspx?cid=2081 the browser
pulls up the page just fine.....
Any thoughts on what direction to look in????
<cfcomponent displayname="getURL">
<cffunction name="get" access="public" returntype="string">
<cfhttp
url="https://www.memberst.com/Programs/Redirector.aspx?cid=2081"
redirect="no" port="443"></cfhttp>
<cfset wholeStringLength=len(cfhttp.responseHeader.Location)>
<cfset urlString=findnocase("=",cfhttp.responseHeader.Location)>
<cfset returnString=trim(mid(cfhttp.responseHeader.Location,(urlString
+ 1),wholeStringLength))>
<cfreturn returnString>
</cffunction>
</cfcomponent>
It had been working earlier today, and now I'm getting a message that says:
Element RESPONSEHEADER.LOCATION is undefined in CFHTTP
If I go to the url listed in the cfc, the
https://www.memberst.com/Programs/Redirector.aspx?cid=2081 the browser
pulls up the page just fine.....
Any thoughts on what direction to look in????
