I have tried pretty much everything I can think of to get the JSESSIONID cookie
to be returned to the site in the second cfhttp. I used to use a simple CFHTTP
with no cfhttpparams. But they have changed to forcing a cookie to track the
logins and I have tried for several days to get a solution to this problem.

Any help is appreciated.


<cfhttp
url="http://www.howesportsdata.com:80/howesportsdata/login/dbvalidate.jsp"
method="POST" throwonerror="yes" redirect="yes">
<cfhttpparam type="formfield" name="ReturnURL"
value="/howesportsdata/0001.htm">
<cfhttpparam type="formfield" name="ESPNUser" value="o*******L">
<cfhttpparam type="formfield" name="ESPNPass" value="S*******2">
<cfhttpparam type="formfield" name="Submit" value="Login">
</cfhttp>

<cfhttp url=
"http://www.howesportsdata.com:80/howesportsdata/STATS/BASKET/USBL/info001.txt"
resolveurl="yes" throwonerror="yes">
<!--- Looping Over Cookie to get pairs--->
<cfloop delimiters=";" index="cookieQ"
list="#cfhttp.responseheader["Set-cookie"]#" >
<cfset params = '#cookieQ#'>
<cfset listItemPosition = 0>
<!--- looping over pairs to get Name and Data --->
<cfloop delimiters="=" index="paramItem" list='#params#'>
<cfoutput>
<!--- Separate Name from Data --->
<cfif listItemPosition eq 0>
<cfset listItemPosition = listItemPosition + 1>
<cfset paramName = '#trim(paramItem)#'>
<cfelse>
<cfset paramData = '#trim(paramItem)#'>
</cfif>
</cfoutput>
</cfloop>
<cfoutput>
<cfhttpparam type="cookie"
name="#paramName#"
value='#paramData#' encoded="no">
</cfoutput>
</cfloop>
</cfhttp>