Hi, As documented in the protocol guide -
http://code.google.com/apis/calendar/developers_guide_protocol.html#RetrievingEvents Requests that are sent to calendar server are sometimes redirect with 302, your code needs to follow this redirection (along with auth token in header). This entry in FAQ provides more details regarding redirection - http://code.google.com/support/bin/answer.py?answer=55833&topic=10360 Hope it helps, Austin On Wed, May 28, 2008 at 8:06 AM, bobb <[EMAIL PROTECTED]> wrote: > > I am creating a feed consisting of 2 calendar entries, 1 is recurring. > When I call the Batch() function, I get an EventFeed instance back, > but it contains no entries. The events are posted in the calendar. > > The log file shows an odd result from the POST: "Moved Temporarily" > > Logfile contents follows:: > > Request at: 5/28/2008 10:54:57 AM > POST to: http://www.google.com/calendar/feeds/default/private/full/batch > Header: Content-Type:application/atom+xml; charset=UTF-8 > Header: User-Agent:CalendarLogging GDataGAuth-CS/1.0.0 > Header: Authorization:GoogleLogin > > auth=DQAAAIUAAAChqswVTYPtaCEfMsmOa1NA5gR0rlGLwOehZXHgffP3Uxritqvf4jFkJbbSqXbTsu-7Hd8TD_gn5U1se4BeKlPg0R91bW1I4__30Km2KJ5- > > WvOMIVf7Fk391V86YwHu9OS0ozAj8tD1GvkB0k6ILyssjitqPSODQUzw9_CxsIb1AB7AoYbTV3aocGgRgVltB88 > Header: Host:www.google.com > Header: Content-Length:1114 > Header: Expect:100-continue > Header: Connection:Keep-Alive > <?xml version="1.0" encoding="utf-8"?> > <feed xmlns="http://www.w3.org/2005/Atom" xmlns:batch="http:// > schemas.google.com/gdata/batch"> > <batch:operation type="insert" /> > <entry xmlns:gd="http://schemas.google.com/g/2005"> > <gd:where valueString="fef" /> > <gd:recurrence>DTSTART;VALUE=DATE:20080527T133000 > DTEND;VALUE=DATE:20080527T224500 > RRULE:FREQ=WEEKLY;BYDAY=TU;UNTIL=20080529 > </gd:recurrence> > <batch:id>0</batch:id> > <batch:operation type="insert" /> > <title type="text">test with ééééééé</title> > <category term="http://schemas.google.com/g/2005#event" > scheme="http://schemas.google.com/g/2005#kind" /> > <content type="text/xml" /> > </entry> > <entry xmlns:gd="http://schemas.google.com/g/2005"> > <gd:when startTime="2008-05-30T09:00:00-04:00" > endTime="2008-05-30T23:15:00-04:00" /> > <batch:id>1</batch:id> > <batch:operation type="insert" /> > <title type="text">test €</title> > <category term="http://schemas.google.com/g/2005#event" > scheme="http://schemas.google.com/g/2005#kind" /> > <content type="text/xml" /> > </entry> > </feed> > > Response received at: 5/28/2008 10:54:58 AM > POST to: http://www.google.com/calendar/feeds/default/private/full/batch > Header: Content-Length:279 > Header: Cache-Control:private, max-age=0 > Header: Content-Type:text/html; charset=UTF-8 > Header: Date:Wed, 28 May 2008 14:55:07 GMT > Header: Expires:Wed, 28 May 2008 14:55:07 GMT > Header: Location:http://www.google.com/calendar/feeds/default/private/ > full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg<http://www.google.com/calendar/feeds/default/private/full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg> > Header: Set-Cookie:S=calendar=MeKkE7hQJm59PJNv6gDeZg;Expires=Thu, 28- > May-2009 14:55:07 GMT > Header: Server:GFE/1.3 > <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/private/full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg<http://www.google.com/calendar/feeds/default/private/full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg> > ">here</ > A>. > </BODY> > </HTML> > > Request at: 5/28/2008 10:54:58 AM > POST to: > http://www.google.com/calendar/feeds/default/private/full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg > Header: Content-Type:application/atom+xml; charset=UTF-8 > Header: User-Agent:CalendarLogging GDataGAuth-CS/1.0.0 > Header: Cookie:S=calendar=MeKkE7hQJm59PJNv6gDeZg;Expires=Thu, 28- > May-2009 14:55:07 GMT > Header: Authorization:GoogleLogin > > auth=DQAAAIUAAAChqswVTYPtaCEfMsmOa1NA5gR0rlGLwOehZXHgffP3Uxritqvf4jFkJbbSqXbTsu-7Hd8TD_gn5U1se4BeKlPg0R91bW1I4__30Km2KJ5- > > WvOMIVf7Fk391V86YwHu9OS0ozAj8tD1GvkB0k6ILyssjitqPSODQUzw9_CxsIb1AB7AoYbTV3aocGgRgVltB88 > Header: Host:www.google.com > Header: Content-Length:1114 > Header: Expect:100-continue > <?xml version="1.0" encoding="utf-8"?> > <feed xmlns="http://www.w3.org/2005/Atom" xmlns:batch="http:// > schemas.google.com/gdata/batch"> > <batch:operation type="insert" /> > <entry xmlns:gd="http://schemas.google.com/g/2005"> > <gd:where valueString="fef" /> > <gd:recurrence>DTSTART;VALUE=DATE:20080527T133000 > DTEND;VALUE=DATE:20080527T224500 > RRULE:FREQ=WEEKLY;BYDAY=TU;UNTIL=20080529 > </gd:recurrence> > <batch:id>0</batch:id> > <batch:operation type="insert" /> > <title type="text">test with ééééééé</title> > <category term="http://schemas.google.com/g/2005#event" > scheme="http://schemas.google.com/g/2005#kind" /> > <content type="text/xml" /> > </entry> > <entry xmlns:gd="http://schemas.google.com/g/2005"> > <gd:when startTime="2008-05-30T09:00:00-04:00" > endTime="2008-05-30T23:15:00-04:00" /> > <batch:id>1</batch:id> > <batch:operation type="insert" /> > <title type="text">test €</title> > <category term="http://schemas.google.com/g/2005#event" > scheme="http://schemas.google.com/g/2005#kind" /> > <content type="text/xml" /> > </entry> > </feed> > > Response received at: 5/28/2008 10:54:59 AM > POST to: > http://www.google.com/calendar/feeds/default/private/full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg > Header: GData-Version:1.0 > Header: Content-Length:4506 > Header: Cache-Control:private, max-age=0 > Header: Content-Type:application/atom+xml; charset=UTF-8 > Header: Date:Wed, 28 May 2008 14:55:08 GMT > Header: Expires:Wed, 28 May 2008 14:55:08 GMT > Header: Server:GFE/1.3 > <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/private/full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg<http://www.google.com/calendar/feeds/default/private/full/batch?gsessionid=MeKkE7hQJm59PJNv6gDeZg> > ">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 -~----------~----~----~----~------~----~------~--~---
