Clif and I emailed back and forth and figured this out. I'm going to post the answer here in case the solution helps someone else.
The issue appears to be a bug in the way that cfhttp handles 302 redirects when using the PUT method. By default, cfhttp follows the redirect, but changes the method to GET, and drops the xml from the body - it's similar to the way that most browsers respond to a redirect when using the POST method. Anyway, the fix it to use the redirect attribute to tell cfhttp to not follow redirects, and then to manually handle them in your code, like this (from Clif's code): <cfhttp url="http://www.google.com/calendar/feeds/default/owncalendars/ full" method="post" redirect="false"> <cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#test.auth#"> <cfhttpparam type="header" name="Content-Type" value="application/atom+xml"> </cfhttp> <cfif find("302",cfhttp.statusCode)> <cfset gsessionid = listlast(cfhttp.responseheader.location, "=")> <cfhttp url="http://www.google.com/calendar/feeds/ default/owncalendars/full?gsessionid=#gsessionid#" method="post" redirect="false"> <cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#test.auth#"> <cfhttpparam type="header" name="Content-Type" value="application/atom+xml"> <cfhttpparam type="body" value="#trim(calendarXML)#"> </cfhttp> </cfif> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
