On May 25, 10:55 am, Pedro <psha...@gmail.com> wrote: > Hi, I'm trying to add a worksheet to an existing google spreadsheet, > but I'm getting a 501 error 'POST method does not support > concurrency'. The code is rather involved (PHP objects), but here is > the POST message I'm sending (XXX = obfuscated values). If you don't > see anything wrong with the request, which reasons could I be > receiving this response code for? > > Thanks for your help! > -Pedro > > POSThttp://spreadsheets.google.com/feeds/worksheets/XXX/private/full > HTTP/1.1 > Authorization: GoogleLogin auth=XXX > GData-Version: 2 > If-Match: * > Content-Type: application/atom+xml > Content-Length: 220 > > <entry > xmlns='http://www.w3.org/2005/Atom' > xmlns:gs='http://schemas.google.com/spreadsheets/2006'> > <title>Backup 2009-05-25 10:47:17</title> > <gs:rowCount>324</gs:rowCount> > <gs:colCount>16</gs:colCount> > </entry>
It appears that the problem was the ETag line ("If-Match: *"). I didn't have that in an old version of the code and for some reason added it in the most recent version. This server response is not well documented at all, but I finally found a hint as to what was going on in this thread: http://markmail.org/message/7pgm6gbjyx4y4osn <quote>The "noPostConcurrency" error message is surprising. It implies that there is a header for the POST specifying that the ETag string should of the new entry be compared to the ETag of an entry already on the server, but that makes no sense for an insert operation, because a new entry is being uploaded.</quote> --~--~---------~--~----~------------~-------~--~----~ 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 Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---