On 29 Jan 2001, at 21:34, Emilio wrote:

> Basically I'm trying this for fun and was just wondering if I could use CF
> to automatically log me into a site and load the resultant html into an
> IFrame on my site, (just so I don't have to type my username and password in
> each time)...does that make sense?  I'd like to get CF to pass my user
> information to another website which uses cookies to verify logins and have
> that site behave as though my little app was me. 

Here's a way I've used successfully:  Check the form for the site's login page. 
Duplicate the form field names in a URL string in your "little app", setting 
values for userid and password.  CFHTTP submits the URL; you can do whatever 
you want with the returned HTML.

> One last thing, what would be the best way to parse the html that comes back
> and create some CF variable which would hold all the links found on the
> page?  My ideal scenario is to pull the menu off the page I'm retieving and
> add it to my own..kinda like making a CF driven favourites folder where the
> menu points to other websites and sections contained on those websites so
> that I can make "short-cuts" for "easy" access.  :) 

Sounds like a job for a custom tag:  parse for all <A HREF=...> tags and 
onclick="window.location=..." URLs, returning a list of URLs.  Have you checked 
the Developer's Exchange?  This sounds like a rather useful tag.

- Jeff

==============================================================
| Jeffrey S. Peters       | "Specialization is for insects." |
| [EMAIL PROTECTED] |                 - Lazarus Long   |
==============================================================

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to