Try a couple things:

1. urlencode your url variables
2. try using the chr() function for the ^ character

Mark

-----Original Message-----
From: Fisichella [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 9:36 AM
To: CF-Talk
Subject: cfhttp question


Hi,

I'm using cfhttp to grab quotes from yahoo finances. The code is like 
below :

<CFOUTPUT>
<cfhttp 
url="http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=sl1d1t1c1ohgv&e

=.csv" method="GET" resolveurl="true"></cfhttp>

#cfhttp.filecontent#<BR>
<BR>
<H3><B>The mime-type:</B></H3><BR>
#cfhttp.mimetype#<BR>
<H3><B>The Status Code:</B></H3><BR>
#cfhttp.statuscode#<BR>
<H3><B>The Raw Header:</B></H3><BR>
#cfhttp.header#<BR>

</CFOUTPUT>


If I run this page, I got the following error :

The requested file is not ASCII text and can not be rendered.

But if I change the url into http://finance.yahoo.com , it will works...

any idea why ???

Does anyone has a better idea how to get quotes, I decide to get it from

yahoo, cause I don't know where I have to go to get this quotes ??? Does

anyone ever do this before ??? One more thing, it causes the page really

slow if I use cfhttp, any better idea beside scheduler ???


Thanks,


Fisichella.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to