couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: URL encoding issue
Date Mon, 18 May 2009 11:46:07 GMT
On Sun, May 17, 2009 at 10:17:59AM +0200, Kai Griffin - Relaxing wrote:
> The trouble is, couchdb fails to return any rows when those quotes are  
> encoded as %22's like that.

Are you sure? Can you tun the same curl command line twice, once where it
works, and once which is identical except you replace every double quote
with %22 ?

Note 1: make sure the whole URL goes inside single quotes:

    curl 'http://127.0.0.1:5984/.....'

Note 2: be careful with square brackets and curl, as it will try to perform
its own globbing on them. Either use the -g flag to curl, or encode your
square brackets as %5B and %5D.

HTH,

Brian.

Mime
View raw message