couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Parker <michael.g.par...@gmail.com>
Subject Re: Referer header required for POST requests?
Date Fri, 30 Mar 2012 17:33:45 GMT
Oops, I was equating POST with creating a new document and PUT with
updating one. I didn't realize that PUT should always be used when
specifying a document URL. That works.

Thanks for your help!

- Mike


On Fri, Mar 30, 2012 at 9:42 AM, Jens Alfke <jens@couchbase.com> wrote:
>
> On Mar 29, 2012, at 1:40 PM, Michael Parker wrote:
>
> POST /test_db/10 HTTP/1.1
> Connection: keep-alive
> Content-Type: application/json
> Content-Length: 168
>
> I get the reply:
>
> {"error":"bad_request","reason":"Referer header required."}
>
> You're sending POST to a document URL, which as far as I know isn't valid.
> Did you mean to use PUT? Or to POST to /test_db ?
>
> —Jens

Mime
View raw message