> I've been trying to retrieve cookies using cfhttp. I used the > following format: > > =================================================================== > <cfhttp method="get" > resolveurl="Yes" > url="some_url_that_tracks_visitors_and_that_writes_cookies" > > > </cfhttp> > > <!--- For testing purposes only ;>) ---> > <cfdump var=#cfhttp#> > =================================================================== > > From the cfdump I can tell there are 3 -expected- cookies > coming in to the client (CFID + CFTOKEN + another one), but the > only cookies that get ever written are the CFID and CFTOKEN from > a previous session. > > Any ideas on how this could work properly?
I'm not entirely sure what you're trying to do. You're talking about cookies being written, but where are they being "written"? When you use CFHTTP to talk to a remote server, and that server sends cookies, it's up to you to resend those cookies on subsequent requests. So, you have to use the CFHTTP.ResponseHeader structure or the CFHTTP.Header string to get the cookies sent by the remote server, and you then have to send those cookies on subsequent requests using CFHTTPPARAM. Unfortunately, this for some inane reason requires that you POST to the remote server, rather than GET. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

