From user-return-4791-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun May 10 08:47:10 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 24876 invoked from network); 10 May 2009 08:47:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 May 2009 08:47:10 -0000 Received: (qmail 91839 invoked by uid 500); 10 May 2009 08:47:08 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 91772 invoked by uid 500); 10 May 2009 08:47:08 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 91762 invoked by uid 99); 10 May 2009 08:47:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 May 2009 08:47:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of matt.goodall@gmail.com designates 209.85.219.166 as permitted sender) Received: from [209.85.219.166] (HELO mail-ew0-f166.google.com) (209.85.219.166) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 May 2009 08:46:59 +0000 Received: by ewy10 with SMTP id 10so3240214ewy.11 for ; Sun, 10 May 2009 01:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=C19p6CEZlvuXRVwE0g4WVpqy4aiBQMKocZV+GSgLLMc=; b=MK8pOgZja4r0fafZA0gbj+wjXpUhDcTiI4CZaYQEgTs9gEJFYEvFkwn4T1V6581lxn Hj/QL9sqc9rOP1yQdHSD8blViVooE7QiFjMFI5RkG7/l0RkQ/dVo1XUPxDICn+x5ZQfY zRxCi7rohg4/yJR9EcJ5OxlbxLY+jq6QCW9BM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FCwI+YGriS437cpaTk5wyhlHGEJMbP26oYkoqD2bAVOvwvhv0hl0laQVfnpKMH9TsV wFXbdsTOok3hhN17zrbay1DQ3Gzr0ItT17I6cfXXhcVRXdcisCubhktmr0F6KvMo0KlJ u7JFzRW+XSNZGuT+pLbNnA2oh9oQHLp1p4zts= MIME-Version: 1.0 Received: by 10.210.58.17 with SMTP id g17mr6543209eba.65.1241945199249; Sun, 10 May 2009 01:46:39 -0700 (PDT) In-Reply-To: References: Date: Sun, 10 May 2009 09:46:39 +0100 Message-ID: <214c385b0905100146pe0f236ep94846a2c799d85e@mail.gmail.com> Subject: Re: Adding jpeg Attachment From: Matt Goodall To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/5/10 z.ohnami : > Hi. > > I tested following command at couchdb 0.9.0. > > =C2=A0$curl -X PUT http://192.xxx.yyy.zzz/database/document/test.txt?rev= =3Dnnn > -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. > > =C2=A0$curl -X PUT http://192.xxx.yyy.zzz/database/document/test.jpg?rev= =3Dnnn > -H "Content/Type: image/jpeg" -d @test.jpg > > Is my command wrong ? > The header should be Content-Type, not Content/Type. - Matt