• 基本操作
    • Set
    • Get
    • Delete

    基本操作

    Set

    1. curl -v -X POST -d value1 http://127.0.0.1:8080/key1
    2. curl -v -X POST --data-binary @icon.jpg http://127.0.0.1:8080/imgs/icon.jpg

    Get

    curl -v http://127.0.0.1:8080/key1

    Delete

    curl -v -X DELETE http://127.0.0.1:8080/key1