This article may be of assistance.
http://www.bennadel.com/blog/1206-Content-Is-Not-Allowed-In-Prolog-ColdFusion-XML-And-The-Byte-Order-Mark-BOM-.htm

On Fri, Jul 8, 2011 at 2:08 PM, Kevin Bachman <[email protected]
> wrote:

>  *Kevin, do you see more if you remove the throwonerror=no? That may show
> more details on screen, or in the cfcatch scope if you wrap this in a
> try/catch. Also, even with the throwonerror, were you dumping the cfhttp
> scope? Any more details there*****
>
> I have tried all of these methods and it always gives the same, sadly
> generic, error description of "Connection Failure. I/O Exception: Premature
> EOF encountered".  HTTPFox shows a return of a 200 status, so no page load
> error.****
>
>
> *Also, when you say “I have proven that my authentication is valid and
> working”, how have you done that? by browsing the URL manually? And were you
> doing that from the CF server (where cfhttp is being executed), or from your
> desktop, if different?*
> I confirmed this with the developer who built the API. What proves this is
> if you make the call direct to the domain without the "/create" service
> extension, it returns the page as a whole, which is behind the
> authentication. Also, if I eliminate one of the URL params, it errors out as
> it should declaring that it is missing an expected param. But when I call
> with everything in place, it returns this error. I thought it was maybe
> something on their end except the same exact call works fine in AJAX, Java,
> PERL, etc. and has been confirmed by them. Just not in CF.****
>
>
> *All those could lead to slightly different results, whether because of
> how the remote service responds (perhaps based on the user agent or various
> others headers sent with the request), or perhaps even in a difference
> between a request sent from your desktop and one sent from the server (where
> CF lives, if it’s different).*
> I have tested this on both my desktop and the server as well.****
>
> ** **
>
> I found articles such as this all over:****
>
> ** **
>
>
> http://australiansearchengine.wordpress.com/2009/09/28/cfhttp-connection-failure/
> ****
>
> ** **
>
> But, it didn't change anything and the developer confirmed the returned
> page is not compressed at all.****
>
> ** **
>
> I am officially puzzled.....****
>
> ** **
>
> Kevin
>
> ****
>
> ** **
>
> ** **
>
> *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Charlie
> Arehart
> *Sent:* Friday, July 08, 2011 12:54 PM
> *To:* [email protected]
> *Subject:* RE: [ACFUG Discuss] CFHTTP error****
>
> ** **
>
> Kevin, do you see more if you remove the throwonerror=no? That may show
> more details on screen, or in the cfcatch scope if you wrap this in a
> try/catch. Also, even with the throwonerror, were you dumping the cfhttp
> scope? Any more details there?
>
> Also, when you say “I have proven that my authentication is valid and
> working”, how have you done that? by browsing the URL manually? And were you
> doing that from the CF server (where cfhttp is being executed), or from your
> desktop, if different?
>
> All those could lead to slightly different results, whether because of how
> the remote service responds (perhaps based on the user agent or various
> others headers sent with the request), or perhaps even in a difference
> between a request sent from your desktop and one sent from the server (where
> CF lives, if it’s different).
>
> Hope that’s helpful.****
>
> ** **
>
> /charlie****
>
> ** **
>
> *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Kevin
> Bachman
> *Sent:* Friday, July 08, 2011 10:37 AM
> *To:* [email protected]
> *Subject:* [ACFUG Discuss] CFHTTP error****
>
> ** **
>
> So, I am trying to hook into a very basic API using JSON translating their
> suggested cURL call to CFHTTP. I have proven that my authentication is valid
> and working, that I am passing the appropriate values and even applying the
> header values I have found suggested for pages that might cause issues in CF
> with compression and/or encoding. But I am still getting the following
> error:****
>
> ** **
>
> I/O Exception: Premature EOF encountered****
>
> ** **
>
> Does anyone here have any suggestions as to what may be going wrong? This
> is running on CF9.0.1. Here is my code:****
>
> ** **
>
> <cfhttp throwonerror="no" username="<xxx>" password="<xxx>" url="http://
> <xxx>.yospace.com/create">****
>
>         ****
>
>         <cfhttpparam type="header" name="accept-encoding" value="*">****
>
>        <cfhttpparam type="header" name="te" value="deflate;q=0">****
>
>         <cfhttpparam type="url" name="profile" value="1001">****
>
>         <cfhttpparam type="url" name="name" value="2000">****
>
> </cfhttp>****
>
> ** **
>
> <cfdump var="#CFHTTP#">****
>
> ** **
>
> thanks!****
>
> ** **
>
> *Kevin Bachman*****
>
> Web Applications Developer****
>
>
> t:  678.405.1197
> e: * [email protected]*
> w: * www.activegroup.net*
>
> * *
>
> * *
>
> [image: Active-group-email-signature]****
>
> ** **
>
> ** **
>
> ** **
>
> *This email, and any files transmitted with it, is confidential and
> intended solely for the use of the individual or entity to whom it is
> addressed. If you received this in error, please contact the sender
> immediately and delete the material from any computer.***
>
> ** **
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink <http://www.fusionlink.com>
> ------------------------------------------------------------- ****
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink <http://www.fusionlink.com>
> ------------------------------------------------------------- ****
>
> -------------------------------------------------------------
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink <http://www.fusionlink.com>
> -------------------------------------------------------------
>

<<image001.gif>>

Reply via email to