<cfhttp url="" method="GET" port="8000">

<cfdump var="#cfhttp#">

Seems not to work. But try adding an agent and it seems to work:

<cfhttp url="" method="GET" port="8000"
useragent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)">

<cfdump var="#cfhttp#">



-----Original Message-----
From: brobborb [mailto:[EMAIL PROTECTED]
Sent: Friday, 20 February 2004 10:05 a.m.
To: CF-Talk
Subject: Re: Extracting Text From web page

I get a connection failure message. Here is the site i am trying to connect
to http://seb.sleepbot.com:8000/played.html

Can anyone lpease help make this possible! hehe :)  Thanks so much!
  ----- Original Message -----
  From: Barney Boisvert
  To: CF-Talk
  Sent: Thursday, February 19, 2004 3:57 PM
  Subject: RE: Extracting Text From web page

  <cfhttp url="" />
  <cfset text = Rereplace(cfhttp.filecontent, "<[^>]*>", "", "all") />

  That'll rip all non-HTML text out of it for you, assuming the HTML is well
  formed (no extraneous angle brackets).

  Cheers,
  barneyb

  > -----Original Message-----
  > From: brobborb [mailto:[EMAIL PROTECTED]
  > Sent: Thursday, February 19, 2004 1:49 PM
  > To: CF-Talk
  > Subject: Re: Extracting Text From web page
  >
  > Just the text.  no HTML stuff :)
  >   ----- Original Message -----
  >   From: Matthew Walker
  >   To: CF-Talk
  >   Sent: Thursday, February 19, 2004 3:42 PM
  >   Subject: RE: Extracting Text From web page
  >
  >
  >   When you say text do you mean all the HTML markup of the
  > page or do you mean
  >   only the content, without the navigation elements etc.?
  >
  >   -----Original Message-----
  >   From: brobborb [mailto:[EMAIL PROTECTED]
  >   Sent: Friday, 20 February 2004 9:36 a.m.
  >   To: CF-Talk
  >   Subject: Extracting Text From web page
  >
  >   Hey guys I'm kinda a newbie at CFHTTP n stuff.  How do I
  > extract the text
  >   from a web page and put it into a variable? (using a URL)  
  > like let's say I
  >   want to get the text from www.example.com/hehe/index.html
  >
  >   Thanks!
  >
  >     _____
  >
  >

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to