Curl command usage instance

  shell

header


curl -i --header "access_token=0e0fddab-6a29-4db7-abc2-6b93961087be" http://localhost:3000/external

cookie


curl -i --cookie "token=566812eb-43c8-425f-a640-264a38003848" http://localhost:3000/external

post


curl -i -d "user_id=xixicat&pwd=demo" -X POST http://localhost:3000/login

get


curl -i -X GET http://localhost:8080/api/repository/tasks

File upload


curl -v  -F"content=@/Users/xixicat/downloads/1472807724.png"  http://localhost:3000/api/tasks/197510/attachments\?name\=t1&type\=application/octet-stream

curl -i -X POST -H "Content-Type: multipart/form-data"  -F  "file=@/Users/xixicat/downloads/1472807724.png" http://localhost:3006/api/tasks/197510/attachments\?name\=t1

doc