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
Does anybody can provide curl command? I'm trying this: curl -sk -u admin:'*****' -H "Content-Type: application/octet‐stream" -d @my_file.xml -X POST
In response I'm receiving: {"code":400,"message":"Content-Range",...
But file size is just 74kB