Connection Failure with Yahoo Web Services and ColdFusion
If you tried using the Yahoo Web Services with CFHTTP and your
cfhttp.filecontent variable had the value:
Connection Failure, or if you had
throwonerror="true" and you got the error:
Connection Failure: Status code unavailable it is due to an encoding issue. You need to set
charset="utf-8" in your
Yahoo point's out in their FAQ item: Why does ColdFusion keep giving me a "Connection Failure" message?
It's an encoding issue. You need to add <cfhttpparam type="Header" name="charset" value="utf-8" /> to your cfhttp call and it should work.
This didn't work for me when I tried it, only setting the
charset attribute in CFHTTP did the trick for me. What I suspect is that in ColdFusion MX 7 setting the header with CFHTTPPARAM works, but does not in 6.1
Like this? Follow me ↯Tweet Follow @pfreitag
Connection Failure with Yahoo Web Services and ColdFusion was first published on April 01, 2005.
The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.