Question
CFM Code Help
Can someone please take a look at this code and let me know
what is wrong with it. Is it the CFSET statement amd I not using it
correctly? Any advice would be greatly appreciated, I am new to
ColdFusion so I am hitting a few bumps on the road.
<cfif isDefined("ses.value")>
<cfset padval = #toString(toBinary(ses.value))#>
<cfset did = Mid(padval, 13, Len(padval)-12)>
<cfoutput>
<cfset rl = "https://myapp.com/login.do?url=me&id=128962&usr=#did#&pwd=xxx">
</cfoutput>
<cfoutput>
<cfhttp method="Get" url="#rl#" redirect="yes"></cfhttp>
</cfoutput>
<cfoutput>
#cfhttp.filecontent#
</cfoutput>
<cfelse>
Get out of here!!!
</cfif>
<cfif isDefined("ses.value")>
<cfset padval = #toString(toBinary(ses.value))#>
<cfset did = Mid(padval, 13, Len(padval)-12)>
<cfoutput>
<cfset rl = "https://myapp.com/login.do?url=me&id=128962&usr=#did#&pwd=xxx">
</cfoutput>
<cfoutput>
<cfhttp method="Get" url="#rl#" redirect="yes"></cfhttp>
</cfoutput>
<cfoutput>
#cfhttp.filecontent#
</cfoutput>
<cfelse>
Get out of here!!!
</cfif>
