I was able to fix this by reposting the exact same information to the redirect URL that I returned by my first post to create a calendar.
On Dec 9, 11:21 pm, kayyah <[EMAIL PROTECTED]> wrote: > Hi, > > I have been trying to create a new calendar in Perl through the Google > Calendar API. The script is using the HTTP::Request and LWP::UserAgent > to get and post data through the API. > > After authenticating I can get it to receive the full list of > calendars. But while creating a calendar using the script pasted > below, the Google server is returning a "Document Moved" message. I > have copied the detailed error at the bottom of this page. > > I have already spent over 3 days in trying to fix this through a PHP > cURL implementation, sevaral variations of Perl, etc, but it is not > working. I will highly appreciate any noble soul that can help. > > Code snippet being used to test calendar creation: ($auth has the > authenticated key) > ----------------------------------- > my $element = > "<entry xmlns='http://www.w3.org/2005/Atom' > xmlns:gd='http://schemas.google.com/g/2005' > xmlns:gCal='http://schemas.google.com/gCal/2005'> > <title type='text'>Little League Schedule</title> > <summary type='text'>This calendar contains the practice schedule > and game times.</summary> > <gCal:timezone value='America/Los_Angeles'></gCal:timezone> > <gCal:hidden value='false'></gCal:hidden> > <gCal:color value='#2952A3'></gCal:color> > <gd:where rel='' label='' valueString='Oakland'></gd:where> > </entry>"; > > my $resL = $userAgent->post('http://www.google.com/calendar/feeds/ > default/owncalendars/full', 'Content-Type' => 'application/atom+xml', > 'Content' => $element, 'Authorization' => 'GoogleLogin auth=' . > $auth); > > ----------------------------------- > > <HTML> > <HEAD> > <TITLE>Moved Temporarily</TITLE> > </HEAD> > <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> > <H1>Moved Temporarily</H1> > The document has moved <A HREF="http://www.google.com/calendar/feeds/ > default/owncalendars/full?gsessionid=iku7zX8pTm8">here</A>. > </BODY> > </HTML> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
