Cool, thanks how do you specify a timeout though ?

Alex

-----Original Message-----
From: Paul Johnston [mailto:[EMAIL PROTECTED] 
Sent: 30 July 2003 15:27
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] CFHTTP


Alex...

Knocked this up... HTH

----code----
<cfscript>
        objURL = createobject("Java", "java.net.URL");
        myURL = objURL.init("http://www.google.com";);
        objisr = createobject("Java", "java.io.InputStreamReader");
        objBr = createObject("Java", "java.io.BufferedReader");
        isr = objisr.init(myURL.getContent());
        br = objbr.init(isr);
</cfscript>

<cfset line = br.readline()>
<cfloop condition="#IsDefined("line")#">
        <cfoutput>#htmleditformat(line)#</cfoutput>
        <cfset line = br.readline()>
</cfloop>
----code----

Just wrap the last bit in a <cfsavecontent> and you'll have pretty much
what you need!

Paul

> -----Original Message-----
> From: Alex Skinner [mailto:[EMAIL PROTECTED]
> Sent: 30 July 2003 15:35
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] CFHTTP
> 
> 
> Guys,
> 
> As you may know there is a bug with CFHTTP that effects MX in
> that the timeout attribute is ignored which means cfhttp 
> waits until the request times out if the resource isnt available.
> 
> This is meant to be fixed in the upcoming updater but has
> anyone got any code for doing a standard cfhttp get using 
> straight java code ?
> 
> Alex
> 
> 
> 
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to