<CFTRY>
<CFHTTP URL="http://collections.sbc.com/test.asp" METHOD="GET" port="80">
<CFCATCH type="any">
  <CFSET errormsg = cfcatch.Message>
  <CFSET errordetail = cfcatch.Detail>
</CFCATCH>
<CFOUTPUT>
  <CFIF IsDefined("errormsg")>
  #errormsg#<BR><BR>
  #errordetail#
  <CFELSE>
  #cfhttp.filecontent#
</cfoutput>

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-----Original Message-----
From: SHEETS, DAYV (PB) [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 04, 2001 10:17 AM
To: CF-Talk
Subject: RE: using <cfhttp> for ASP?


Thanks Nick. When I execute the page however, I receive an error message
"Connection Failure"...

Thanks,

Dayv 



-----Original Message-----
From: Nick McClure [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 9:46 AM
To: CF-Talk
Subject: RE: using <cfhttp> for ASP?


Did you do the cfoutput?

<cfoutput>
#cfhttp.filecontent#
</cfoutput>

after the <cfhttp> call you need to do this.

At 09:07 AM 4/4/2001 -0700, you wrote:
>Sure did. ;)
>
>I created a page named "test.asp" and within the body I have
><%response.write "This is a test..." %>
>
>In my cfm page I have in the body:
><CFHTTP URL="http://collections.sbc.com:800/test.asp" METHOD="GET">
>
>However, when I pull up the cfm page the asp text is not being shown.
>
>??
>
>Thanks,
>Dayv
>
>
>
>-----Original Message-----
>From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, April 04, 2001 8:44 AM
>To: CF-Talk
>Subject: RE: using <cfhttp> for ASP?
>
>
>you want to grab the content of an ASP page with CFHTTP? sure.
>
><CFHTTP URL="http://domain/path/file.asp" METHOD="GET">
>
>did you *try* it?
>
>-----Original Message-----
>From: SHEETS, DAYV (PB) [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, April 04, 2001 8:31 AM
>To: CF-Talk
>Subject: using <cfhttp> for ASP?
>
>
>Can anyone tell me if it is possible to perform a <cfhttp> with ASP
>as the template? If it is possible please also provide an example of how
>this is accomplished.
>
>Thanks,
>
>Dayv
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to