Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

First PUT attachment command from "The Core API" not working in UNIX #436

Open
valberg opened this Issue · 1 comment

1 participant

@valberg

When running a command similar to:

> curl -vX PUT http://127.0.0.1:5984/albums/6e1295ed6c29495e54cc05947f18c8af/artwork.jpg?rev=2-2739352689 --data-binary @artwork.jpg -H "Content-Type: image/jpg"

from http://guide.couchdb.org/draft/api.html#attachments on UNIX the following is returned:

no matches found: http://127.0.0.1:5984/albums/6e1295ed6c29495e54cc05947f18c8af/artwork.jpg?rev=2-2739352689

This is due to the way curl works. For consistency and to prevent confusion put "" around the URI:

> curl -vX PUT "http://127.0.0.1:5984/albums/6e1295ed6c29495e54cc05947f18c8af/artwork.jpg?rev=2-2739352689" --data-binary @artwork.jpg -H "Content-Type: image/jpg"
@valberg

Anyone fix this? :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.