Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 97316 invoked from network); 16 Jul 2010 19:11:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jul 2010 19:11:16 -0000 Received: (qmail 67252 invoked by uid 500); 16 Jul 2010 19:11:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 67115 invoked by uid 500); 16 Jul 2010 19:11:14 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 67107 invoked by uid 99); 16 Jul 2010 19:11:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 19:11:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 19:11:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6GJAneN007360 for ; Fri, 16 Jul 2010 19:10:50 GMT Message-ID: <23784120.424661279307449810.JavaMail.jira@thor> Date: Fri, 16 Jul 2010 15:10:49 -0400 (EDT) From: "Talib (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-828) When Issuing a Get Request with Content-Type: application/x-www-form-urlencoded an error is thrown In-Reply-To: <20913346.424011279305110730.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889270#action_12889270 ] Talib commented on COUCHDB-828: ------------------------------- I built a small test view, that returns a JSON object. GET /autocomplete_test_v1/_design/feed/_list/json/bychar?limit=10&startkey=%5B%22A%22%2C%22B%22%5D&endkey=%5B%22A%22%2C%22B%22%2C%5B%5D%5D The Code to use it was generated using jQuery. Look at the Comment in the code below for the relevant part. Test out the Autocomplete functionality
> When Issuing a Get Request with Content-Type: application/x-www-form-urlencoded an error is thrown > -------------------------------------------------------------------------------------------------- > > Key: COUCHDB-828 > URL: https://issues.apache.org/jira/browse/COUCHDB-828 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.0 > Reporter: Talib > > When doing an AJAX GET Request, the content type is set to application/x-www-form-urlencoded, the request fails. > Removing the "Content-Type: application/x-www-form-urlencoded" header makes the request success. > Here is what the headers look like for a failed request. > Connection: keep-alive > User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4 > X-Requested-With: XMLHttpRequest > Content-Type: application/x-www-form-urlencoded > Accept: application/json, text/javascript, */* -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.