Okay, there is a cookie in the header.  Having not worked with CFHTTP
before, what do I need to do with it?


Set-Cookie
MACTOKEN=jchastain|1078091329189|e4825ffba9b8603a0af27bd08c519dd2;
path=/psoft/servlet/psoft.hsphere.CP/jchastain/


I am running CFMX 6.1 if that matters as well.


Thanks for the help.
-- Jeff

  _____  

From: Philip Arnold [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 3:27 PM
To: CF-Talk
Subject: RE: CFHTTP & Meta Refresh

> From: Jeff Chastain
>
> My hosting provider has a control panel application available
> for each hosting plan that includes statistics like bandwidth
> and disk space usage. I am needing to utilize these
> statistics in my CF app, but the control panel does not
> include an API to extract this information.
>  
> Therefore, I have been playing with CFHTTP, attempting to log
> into the correct page in the control panel and then parse the
> html content to get these statistics.
>  
> It would appear that the login form posts to an action page,
> when then uses a meta refresh to go to the user home page of
> the control  panel.   When I use the following CFHTTP tag to
> post the login information to the action page, the return
> result is the html meta redirect instead of the control panel
> home page.   How do I get this home page instead of the
> redirect?

Does the system write a cookie when you login? I presume so as it
redirects you

What you need to do is look through the header of the return to see if
it's there

This is in CFHTTP.header and CFHTTP.responseHeader

I don't know what version of CF you're using, so this might not be
available to you
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to