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: Resubmission: CFHTTP Parser
Tony (38p/+0r)     Posted: Sunday 29 Apr 2001
This post: 66 views, +0 rating

This code will work on any site... No changes need other than the url to search and the start and end tags of course... The code I submitted last night only worked on yahoo... ouch!

<cfparam name=outstring default=''> <CFHTTP URL="enterurlhere" METHOD="GET" RESOLVEURL="yes"> </CFHTTP>

<cfset stvar='<start_tag>'> <cfset endvar='<end_tag>'>

<CFSET st=Findnocase('#stvar#',CFHTTP.FileContent)> <CFSET end=Findnocase("#endvar#",CFHTTP.FileContent)>

<CFSET num=end-st> <cfscript> AddExcess = num + #len(endvar)#; </cfscript> <cfset outstring=mid(CFHTTP.FileContent,st,AddExcess)>

<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)
RE: Resubmission: CFHTTP Parser  30 Apr 2001   (34 v/ +0 r)
Resubmission: CFHTTP Parser  29 Apr 2001 (this post)   (66 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