On 2008-12-16 21:33:35 -0800, senling <[email protected]> said: > > I'm having trouble sending xml entry to modify the ACL feed. > > > POST /feeds/acl/private/full/document%3A<your document id> HTTP/1.1 > Host: docs.google.com > Authorization: <your authorization header here> > > <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gAcl='http:// > schemas.google.com/acl/2007'> > <category scheme='http://schemas.google.com/g/2005#kind' > term='http://schemas.google.com/acl/2007#accessRule'/> > <gAcl:role value='writer'/> > <gAcl:scope type='user' value='[email protected]'/> > </entry> > > I got the following > Status Code :415 > > Response :Content-Type application/xml;charset=UTF-8 is not valid.
You need to set a Content-Type header with the value "application/atom+xml" whenever sending XML data to the Google Data APIs. Otherewise you'll get an HTTP 415 error, like you're reporting. -- Trevor Johns --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data APIs" 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-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---
