Further to my existing query is cfhttp restricted to coldfusion templates or
can it it be compatible with any executable awaiting the parameters within
cfhhtp,
 to quote the help docs

"Post passes data to a specified ColdFusion page or to some executable that
interprets the variables being sent and returns data."

-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2001 17:05
To: CF-Talk
Subject: RE: CFHTTP


I am running enterprise server 4.5.1

-----Original Message-----
From: Caulfield, Michael [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2001 16:54
To: CF-Talk
Subject: RE: CFHTTP


I think this is a CF 4.5.x bug. If CF doesn't recognize the file type as
text, then CF
won't display the FileContent, even if it is ASCII.

I'm not sure if the service packs addressed this or not. What are you
running?

-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 9:50 AM
To: CF-Talk
Subject: CFHTTP


OK Folks,

I have two pages, on my first I have a dynamically populated select box that
has vehicles listed from a database,

the second page is my action page that pulls out my data like so,

<cfif not isdefined("form.callsign")>
        <cflocation url="mapTest.cfm" addtoken="No">
<cfelse>
<cfquery name="qry_getVeichle" datasource="#application.dsn#"
username="#application.gateway#" password="#application.key#">
                SELECT  callsign, vowner, dt, Lat, Lon, Speed, Direction,
Veh_Reg
                FROM    dbo.vehicles
                WHERE   callsign = '#form.callsign#'
</cfquery>
</cfif>

Now after this query is run I pass values from the record set (also on the
same action page) to another server on a different domain to get a rendered
map showing an icon which represents my vehicle selected like so,

                <cfhttp
url="http://maps.whereonearth.com/cgi-bin/mapview.exe" method="POST">
                
                <cfhttpparam name="Lat" type="FORMFIELD"
value="#qry_getVeichle.Lat#">
                <cfhttpparam name="Lon" type="formfield"
value="#qry_getVeichle.Lon#">
                
                </cfhttp>


                <cfhttp URL = "http://bogus/areaOnline.com resolveurl = 1
throwonerror = Yes method="GET">
                </cfhttp>

                <cfoutput><tr><td
colspan="3">#cfhttp.filecontent#</td></tr></cfoutput>

When I run my page my values are output correctly, but I get an error like
so,

The requested file is not ASCII text and can not be rendered.
any ideas out there would be deeply appreciated,

many thanx...., by the way "Stir of Echeos" great movie..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to