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 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 http://www.fusionlink.com -------------------------------------------------------------
<<image001.gif>>
