File Upload via iControl REST
Code : def _upload(host, creds, fp):
chunk_size = 512 * 1024
headers = {
'Content-Type': 'application/octet-stream'
}
fileobj = open(fp, 'rb')
filename = os.path.basenam...
Published Nov 05, 2015
Version 1.0JRahm
Admin
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
adammdit_276749
Oct 30, 2016Nimbostratus
Just found answer to my question. I'm using 11.6 and it's working fine:
curl -i -sk -u admin:'*****' -X POST -H "Expect:" -H "Content-Type: application/octet-stream" -H "Content-Range: 0-(SIZE-1)/SIZE" --data-binary "@my_file.xml"
File is located in: /ts/var/rest
Next step rewrite it to use LWP :)