in tools/travis/box-upload.py [0:0]
def upload_file(local_file, remote_file):
"""Upload file."""
if remote_file[0] == '/':
remote_file = remote_file[1:]
url = "http://DamCYhF8.mybluemix.net/upload?%s" % \
urllib.urlencode({"name": remote_file})
r = requests.post(url,
headers={"Content-Type": "application/gzip"},
data=open(local_file, 'rb'))
print("Posting result", r)
print(r.text)