I would get rid of the NAME and "delimeter" attributes and try simply
"getting" the file first. Does that work?  Can you get the raw contents of
the file (without putting it into a query).

Also, is the <Cfhttp> actually pointed at a filename?  Or does it point to a
cfm page that delivers up the file?  If the latter, it could be that you
need a POST request with <Cfhttpparams>.

-mk


-----Original Message-----
From: Mitko Gerensky-Greene [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:57 PM
To: CF-Talk
Subject: Need help with CFHTTP


Hello,

Last week I asked about a CFFILE issue and was advised to use CFHTTP to read
files from a remote server.

Now I am trying to make this work but with no success yet. Unfortunatelly,
this is on an intranet and I am not able to give you the link, but I will
try to explain what is happenening.

received_plans_test.cfm (similar to
http://webapps1.hud.gov/pih/pha/plans/received/received_plans.cfm) sends a
form to received_plans_test.cfm
(similar to
http://webapps1.hud.gov/pih/pha/plans/received/view_received.cfm)

The form sends whatever field office, plan type, fiscal year and beginning
quarter is selected from a set of drop-down menus.

Depending on the fiscalyear selected in page1.cfm, page2.cfm is supposed to
read a text file and expose its content sorted one way or another.

Here is the error message I am getting:

Error Diagnostic Information
CFHTTP

The error occurred while processing an element with a general identifier of
(CFHTTP), occupying document position (449:11) to (450:111) in the template
file /home1/web-docs-80/pih/pha/received/view_received_test.cfm.


Date/Time: Mon Sep 23 15:52:49 2002
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95; YComp 5.0.0.0)
Remote Address: 10.200.36.101
HTTP Referrer: http://www2.hud.gov/pih/pha/received/received_plans_test.cfm

Here is the piece of code between lines 449 and 450:


          <cfhttp method="get" name="PHAPlansQuery"

URL="http://www.hud.gov/offices/pih/pha/received/#fiscalyear#/#fieldoffice#-
#fiscalyear#.txt" delimiter=";">
                </cfhttp>

What is wrong?

Thanks in advance for your help,

Mitko

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to