Philipp,

I took a closer look at this and believe that I see the problem.  The
Google Calendar API implements GData optimistic concurrency, as
described here:

     http://code.google.com/apis/gdata/protocol.html#Optimistic-concurrency

This means the the edit link relations (<atom:link rel="edit"/> for a
calendar event will contained versioning information used to detect
conflicts between multiple clients trying to update the same calendar
entry.

The URLs in the sample below do not contain this versioning
information, which leads me to believe that you are using the value of
the 'self' link relation to do your PUT/DELETE instead of href
attribute of the 'edit' link relation.    The two values are not the
same for a versioned GData service.

Attempts to update content should always use the 'edit' link relation href.

Hope this helps!

-- Kyle

On 9/19/06, Philipp Kewisch <[EMAIL PROTECTED]> wrote:
>
> I'm having problems using the PUT and DELETE methods. This is the
> output of lwp-request. I also get this when using DELETE directly. Is
> my request correct?
> ===========================================
>
>
> POST
> http://www.google.com/calendar/feeds/[EMAIL 
> PROTECTED]/private/full/mj71bqa5r5fd80oajleuakl7jk
> Authorization: GoogleLogin auth=<myauthkey>
> User-Agent: lwp-request/2.06
> Content-Length: 0
> Content-Type: application/x-www-form-urlencoded
> X-HTTP-Method-Override: DELETE
>
> POST
> http://www.google.com/calendar/feeds/[EMAIL 
> PROTECTED]/private/full/mj71bqa5r5fd80oajleuakl7jk
> --> 400 Bad Request
> Cache-Control: private
> Date: Tue, 19 Sep 2006 22:23:28 GMT
> Server: GFE/1.3
> Content-Type: text/plain;charset=iso-8859-1
> Client-Date: Tue, 19 Sep 2006 21:17:38 GMT
> Client-Peer: 72.14.221.104:80
> Client-Response-Num: 1
> Client-Transfer-Encoding: chunked
> Cneonction: Close
>
> =====================================================
>
>
>
> Now to the bug report: Note the spelling of the last line: Cneonction.
> I believe this should be Connection ;)
>
>
> Philipp
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to