I went to staples.com and added an item to my shopping cart. Then I got all the cookies that were set by using javascript:document.write(document.cookie);
Now I'm using the following code to set the cookies and do a cfhttp. For some reason when I do the cfhttp it tells me that there are no items in my cart. When I go to the same page in IE, I see items in my cart. <cfset cookies=ArrayNew(1)> <cfset cookies[1]="zipcode=11214"> <cfset cookies[2]="ShopperManager%2F=ShopperManager%2F=7A7836F85ACB43FBA3523354 CA7E4083"> <cfset cookies[3]="MACHINE%5FMODE=SOHO"> <cfset cookies[4]="ASPSESSIONIDGGQGGYDG=KOJEANEBMGBHFBPHHDPICNMO"> <cfset cookies[5]="SITESERVER=ID=e68e12640c7844ec16b5e2820de979e3"> <cfset cookies[6]="ACRU=W3HU75SE8FK78MB69385329N6TAW8915"> <base href="http://www.staples.com/"> <cfhttp url="http://www.staples.com/Cart/default.asp" method="POST" useragent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" redirect="No"> <cfloop from="1" to=#arrayLen(cookies)# index=x> <cfhttpparam type="COOKIE" name="#ListFirst(cookies[x],'=')#" value="#ListRest(cookies[x],'=')#"> <cfoutput>#ListFirst(cookies[x],'=')#=#ListRest(cookies[x],'=')#;</cfout put> </cfloop> <cfhttpparam type="URL" name="HPR" value="133"> </cfhttp> <cfoutput><pre>#cfhttp.header#</pre><hr> <bR>#cfhttp.filecontent#</cfoutput> That was the code, and here is the header I get back. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Wed, 01 Jan 2003 23:43:06 GMT Pragma: no-cache Connection: Keep-Alive Content-Length: 19794 Content-Type: text/html Expires: Tue, 01 Jan 1980 05:00:00 GMT Set-Cookie: PageType=1; expires=Tue, 31-Dec-2002 05:00:00 GMT; path=/ Cache-control: no-cache If I try the get method, then I can't pass in any cookies (it tells me that I can't have cfhttpparam when the method is get. Am I doing something wrong? Why are the items not showing up in the shopping cart? I can't imagine what else they can be using for passing variables. Russ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.