> > > Has anyone ever received this error when using 'cfhttp'?
> > >
> > > The requested file is not ASCII text and can not be rendered.
> > >
> > > Here is my simple code:
> > >
> > > <CFHTTP method="get" url="http://www.yahoo.com" resolveurl="yes"
> > > proxyserver="web-proxy.crp.disney.com">
> > >
> > > <cfoutput>
> > > #CFHTTP.FileContent#
> > > </cfoutput>
> > >
> > > </cfhttp>
> >
> > Typically, you get this message when the remote server
> > returns a non-text MIME type. You can test this theory by
> > referencing CFHTTP.MimeType.
...
> OK I did that and this is what I got:
>
> application/x-ns-proxy-autoconfig
>
> What does this mean?

It means that your proxy server is rewriting the Content-Type header of your
CFHTTP request. Unfortunately, even though your CFHTTP.FileContent would
contain a string, CFHTTP won't let you display the FileContent if the
content type isn't text, which is a big pain. You can use CFHTTP to write to
a text file, then read the contents of the file using CFFILE. Or, you can
use a replacement for CFHTTP, which will let you do what you want. You might
be able to configure the proxy server so it doesn't rewrite the header, if
you control the proxy server.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to