[thelist] Advanced CFHTTP Question

Jon Hall jonhall at ozline.net
Tue Jul 16 16:55:01 CDT 2002


How does the site keep track of users, cookies I presume? If so, you need to
look at the cookie header name/values that you get back from the login
script, and resend those cookies with each cfhttp connection using
cfhttpparam type="cookie" so that the server knows that you are a logged in
user.
There is no need to start writing your own http client here, although if you
do choose to, I reccomend using MSXML's ServerXMLHTTP object through
cfobject. No need to reinvent the wheel creating an http client with a raw
socket library like tcpclient, it supports ssl, and it already exists on
most Windows servers (v3 comes with IE6).

jon
----- Original Message -----
From: "Josh Spiegel" <josh at eaccessit.com>
To: <thelist at lists.evolt.org>
Sent: Tuesday, July 16, 2002 5:40 PM
Subject: RE: [thelist] Advanced CFHTTP Question


> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> then build your initial cfhttp connection so that it posts form fields
> by
> the same name and with the proper values to the login script.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> ><><
>
>
> Jeff,
> I don't think you understand the problem.  I could login with CFHTTP but
> then that's it.  I can't go to other pages after I login.  CFHTTP
> doesn't keep track of the session.  I could only get the page that I am
> redirected to after the login.  I need to parse many pages after the
> initial login.
>
> Aaron,
> Very helpful.  I have used Intranetfoundation stuff (CFX_IIS) before.  I
> didn't know they had a tcpclient.  Thankyou.





More information about the thelist mailing list