Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Server
Cold Fusion Server Tech
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Server: 
Subject: Code Contribution: Parsing CFHTTP
Tony (38p/+0r)     Posted: Sunday 29 Apr 2001
This post: 62 views, +0 rating

I owe you guys this much

<cfparam name=outstring default=''><CFHTTP

URL="http://yahoo.com"

METHOD="GET"

RESOLVEURL="false">

</CFHTTP>

<CFSET st=Findnocase("<title>",CFHTTP.FileContent)>

<CFSET end=Findnocase("</title>",CFHTTP.FileContent)>

<CFSET num=end-st>

<cfset outstring=mid(CFHTTP.FileContent,st,end)>

<cfscript>

CutExcess = #len(outstring)# - 4;

</cfscript>

<cfset outstring=RemoveChars(outstring, #cutexcess#, 5)>

<CFOUTPUT>#outstring#</CFOUTPUT>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com


Similar Subject Line Posts (+/- two weeks of this post)
Code Contribution: Parsing CFHTTP  29 Apr 2001 (this post)   (62 v/ +0 r)
 

Send a reply to the CF-Server list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000