From user-return-20267-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Mar 29 20:47:35 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBBEB9EE4 for ; Thu, 29 Mar 2012 20:47:35 +0000 (UTC) Received: (qmail 3512 invoked by uid 500); 29 Mar 2012 20:47:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 3366 invoked by uid 500); 29 Mar 2012 20:47:34 -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 3354 invoked by uid 99); 29 Mar 2012 20:47:34 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 20:47:34 +0000 Received: from localhost (HELO mail-iy0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 20:47:34 +0000 Received: by iage36 with SMTP id e36so4735084iag.11 for ; Thu, 29 Mar 2012 13:47:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.219.163 with SMTP id pp3mr2880463igc.1.1333054053524; Thu, 29 Mar 2012 13:47:33 -0700 (PDT) Received: by 10.42.240.135 with HTTP; Thu, 29 Mar 2012 13:47:33 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Mar 2012 21:47:33 +0100 Message-ID: Subject: Re: Referer header required for POST requests? From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 I believe it's a security thing, to stop cross-posting. On 29 March 2012 21:40, Michael Parker wrote: > Hi all, > > I'm writing a load test tool for CouchDB (coming soon, will be open > sourced, will announce it here, yada yada :) and when trying to insert > a document with a HTTP request like so: > > 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."} > > Why is the referrer header required? Furthermore, for a standalone > tool like this, what's an appropriate value? I couldn't find any > mention of this header at > http://wiki.apache.org/couchdb/HTTP_Document_API#POST. I'm using Couch > 1.1.1. > > Thanks, > Mike