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