I bet it's HTTP/0.9 part. That spec is really really old and deprecated. Your 
webserver should be sending 1.0 or 1.1.

.Pjf
-----Original Message-----
From: Skellington <[email protected]>
Date: Mon, 19 Oct 2009 09:25:14 
To: Open BlueDragon<[email protected]>
Subject: [OpenBD] Re: responseheader issue with cfhttp


Since it works in CMFX7 I could see the header as "HTTP/0.9 200 OK",
so I decided to fix it using java.

So this is how I fixed/got around it...


<cfscript>
        my_url_string = 'http://my.fake.host.com:8090/data.html';
        objUrl = createobject("java","java.net.URL").init(javacast("string",
my_url_string));

        conn = objUrl.openConnection();
        conn.setDoOutput(true);

        inSr = createobject("java","java.io.InputStreamReader").init
(conn.getInputStream());
        inBr = createObject("java","java.io.BufferedReader").init(inSr);

        str = inBr.readLine();
        // loop ... str will be undefined if there are no more lines
        while (isDefined("str"))
        {
                Data = str&chr(10);
                writeoutput(Data);
                // read the next line so we can continue the loop
                str = inBr.readLine();
        }

        // close the buffered reader object
        inBr.close();
</cfscript>



--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to