Matteo Scandolo | 1c049b0 | 2018-01-18 11:32:46 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | XOS_URL=127.0.0.1 | ||||
4 | XOS_PORT=9101 | ||||
5 | XOS_USERNAME=xosadmin@opencord.org | ||||
6 | XOS_PWD=ORR13pBZ8yrAZ42QiKhc | ||||
7 | |||||
8 | echo Sending file $2 to url $XOS_URL:$XOS_PORT/xosapi/v1/$1 | ||||
9 | |||||
10 | curl -H "xos-username: $XOS_USERNAME" -H "xos-password: $XOS_PWD" -X POST --data-binary @$2 http://$XOS_URL:$XOS_PORT/xosapi/v1/$1 |