[thelist] CFHTTP and Cookies

Raymond Camden rcamden at allaire.com
Thu Jan 11 18:55:38 CST 2001


Under CF 4.5.1 SP2, you can examine the results of a CFHTTP call by examing
the CFHTTP.RESPONSEHEADER structure. On hitting allaire.com, you get this in
the responseheader struct:

CONTENT-TYPE : text/html
DATE : Fri, 12 Jan 2001 00:53:12 GMT
EXPLANATION : OK
HTTP_VERSION : HTTP/1.1
PAGE-COMPLETION-STATUS : Normal
PAGE-COMPLETION-STATUS : Normal
PAGE-COMPLETION-STATUS : Normal
SERVER : Microsoft-IIS/4.0
SET-COOKIE : CFID=296736; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;
SET-COOKIE : CFTOKEN=64304961; expires=Sun, 27-Sep-2037 00:00:00 GMT;
path=/;
SET-COOKIE : UID=DED10831%2DE6C2%2D11D4%2D876000508B94FD4C; expires=Sun,
27-Sep-2037 00:00:00 GMT; path=/; domain=.allaire.com;
STATUS_CODE : 200

(fyi, the SET-COOKIE key was an array)

p.s. I think the ResponseHeader stuff may have come in 4.5.1 SP1, not sure
if it was in 4.5.1. Anyway, it's certainly in 4.5.1 SP2.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Allaire

Email   : jedimaster at allaire.com
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Michael Buffington
> Sent: Thursday, January 11, 2001 7:24 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] CFHTTP and Cookies
>
>
> Is it possible to receive cookies in CF using CFHTTP (or any other
> concoction of code).
>
> I know you can send cookies via CFHTTP, but what if a site you're
> connecting
> suprises you with a new cookie, how do you know it's there, and
> make use of
> it, if at all?
>
> Michael Buffington
> mike at price.com
> (714) 556-3890 x222
> http://www.price.com
>





More information about the thelist mailing list