couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto R" <roberto.r...@gmail.com>
Subject Standalone Attachment PUT
Date Mon, 15 Sep 2008 09:51:17 GMT
Hi,

This might be another newbie issue...

I'm getting an HTTP 405 Method Not Allowed response when trying to do a PUT
to create an attachment for an existing document.

Based on the Document API wiki page, I'm using the following PUT URL:
http://localhost:5984/test/481335d676ac481e35724970d71af781/THANKS.gz?rev=1025549386

The CouchDB log shows:
[Mon, 15 Sep 2008 09:46:21 GMT] [debug] [<0.6078.0>] PUT
/test/481335d676ac481e35724970d71af781/THANKS.gz {1,1}
Headers: [{'Accept',"application/xml"},
          {'Accept-Encoding',"gzip, deflate"},
          {'Content-Length',"483"},
          {'Content-Type',"application/x-gzip"},
          {'Host',"localhost:5984"}]

[Mon, 15 Sep 2008 09:46:21 GMT] [info] [<0.6078.0>] 127.0.0.1 - - "PUT
/test/481335d676ac481e35724970d71af781/THANKS.gz" 405

I've confirmed the _id and _rev are correct.

Thanks!

Roberto

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message