<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Coderguy's Blog &#187; couchdb</title>
	<atom:link href="http://www.coderguy.com/category/couchdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coderguy.com</link>
	<description>Thoughts on code</description>
	<lastBuildDate>Mon, 19 Jul 2010 15:22:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Couchdb CURL gotcha</title>
		<link>http://www.coderguy.com/2009/10/couchdb-curl-gotcha/</link>
		<comments>http://www.coderguy.com/2009/10/couchdb-curl-gotcha/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 16:04:19 +0000</pubDate>
		<dc:creator>coderguy</dc:creator>
				<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[couchdb]]></category>
		<category><![CDATA[curl]]></category>

		<guid isPermaLink="false">http://www.coderguy.com/?p=49</guid>
		<description><![CDATA[So this is one of those stupid little development issues that eats up an hour of your time.  I am documenting this in hopes that it will save someone from wasting an hour of your time. I am learning couchdb and using curl to interact with it&#8217;s RESTful api.  I wrote a view and was [...]]]></description>
			<content:encoded><![CDATA[<p>So this is one of those stupid little development issues that eats up an hour of your time.  I am documenting this in hopes that it will save someone from wasting an hour of your time.</p>
<p>I am learning couchdb and using curl to interact with it&#8217;s RESTful api.  I wrote a view and was trying to limit it by a key.  I was issuing the commands:</p>
<p><code>curl -X GET http://127.0.0.1:5984/blog/_design/posts/_view/by_author?key="rob"</code></p>
<p>I was getting a 500 error for invalid json.  When I pasted the URL in the web browser I got a valid response.  The problem was that you needed to escape the quotes on the curl call as %22 not &#8220;.</p>
<p><code>curl -X GET http://127.0.0.1:5984/blog/_design/posts/_view/by_author?key=%22rob%22</code></p>
<p>Keep in mind you only have to put the quotes around string values a not around numeric values.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coderguy.com/2009/10/couchdb-curl-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
