2009/5/10 z.ohnami <[email protected]>: > Hi. > > I tested following command at couchdb 0.9.0. > > $curl -X PUT http://192.xxx.yyy.zzz/database/document/test.txt?rev=nnn > -H "Content/Type: text/plain" -d @test.txt > > It worked well.I got the text data from Futon. > But next doesn't work well.I got file's URL from Futon instead of jpeg > data I PUT. > > $curl -X PUT http://192.xxx.yyy.zzz/database/document/test.jpg?rev=nnn > -H "Content/Type: image/jpeg" -d @test.jpg > > Is my command wrong ? >
The header should be Content-Type, not Content/Type. - Matt
