Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
BuddamanX #1
CFHTTP and Returning Cookies
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>
BuddamanX Guest
-
CFHTTP
Hello, I need to send data from a CF page to an asp.net page for processing via a URL string. The ASP page takes three parameters. Those being... -
Cfhttp problem
Im trying to loop through an array elements (in this case URLs) using cfhttp, there are several elements in the array but I can only cfhttp the... -
CFHTTP help/clarification
Hello, I am using CFHTTP for the first time in this manner. What I am trying to do is take a 3rd party web sites form processing (a vendor we have a... -
Error returning CFHTTP values
Im trying to parse some html to get all the href values from it. Once I have the href's I try to remove the html tags from them and add the... -
CFHTTP help
We have an in-house built publication system that creates .htm files from database content. For a specific project, I need to modify the way that...



Reply With Quote

