couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Brown <yogie...@mac.com>
Subject Standalone attachments not working in 0.8.1-incubating?
Date Sat, 31 Jan 2009 08:50:20 GMT
I have a database called "test".

I can add documents quite easily with PUT. However, when I try to add  
a standalone attachment (either to an existing document or to a new  
document), I get 405 Method not allowed.


PUT /test/b1/att1 HTTP/1.0
Content-Length: 8
Content-Type: text/plain

12345678

HTTP/1.0 405 Method Not Allowed
Server: CouchDB/0.8.1-incubating (Erlang OTP/R12B)
Date: Fri, 30 Jan 2009 23:44:51 GMT
Content-Length: 0
Allow: GET,HEAD

It didn't even let me send the content before responding


That's not to say PUTs themselves don't work. I can do the following  
successfully:

PUT /test/d1 HTTP/1.1
Content-Type: application/json

{ "subject":"abc"}

HTTP/1.1 201 Created
Server: CouchDB/0.8.1-incubating (Erlang OTP/R12B)
Etag: "508165343"
Date: Sat, 31 Jan 2009 08:41:00 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 39
Cache-Control: must-revalidate

{"ok":true,"id":"d1","rev":"508165343"}

Cheers,
Eric


Mime
View raw message