Skip to content

Commit

Permalink
read curl manpage and adjusted commands
Browse files Browse the repository at this point in the history
  • Loading branch information
benatkin committed Oct 30, 2010
1 parent 63a4107 commit a190168
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -26,10 +26,10 @@ Because I haven't wired up something that views multiline strings in JSON nicely
# Before

export UPASS=benatkin:$(cat ~/.cloudantpw)
export CLOUDANT=http://$UPASS@benatkin.cloudant.com
export CLOUDANT=https://$UPASS@benatkin.cloudant.com
export COUCH=$CLOUDANT/jsonista
export THISFILE=curl-md-attachment.md
export JSON='{"src": "$THISFILE}"'
export JSON={\"src\":\"$THISFILE\"}
export DOC=$COUCH/quuxzzrt
export ATT=$COUCH/_attachments/$THISFILE

Expand All @@ -41,8 +41,8 @@ Because I haven't wired up something that views multiline strings in JSON nicely

This hasn't yet been certified to work on my machine.

curl -X PUT -D $JSON $DOC
curl -X PUT -F $THISFILE $ATT
curl -X PUT -d $JSON $DOC
curl -X PUT -d @$THISFILE $ATT

# Down

Expand Down

0 comments on commit a190168

Please sign in to comment.