Forum Discussion
XuSteve_371030
Nimbostratus
Sep 20, 2018400 When uploading a file using /mgmt/shared/file-transfer/uploads
When uploading a CERT file using /mgmt/shared/file-transfer/uploads.
There are two responses from the server:
We are completely uploaded and fine
[5 bytes data]
< HTTP/1.1 400 Bad Request
...
< Co...
cjunior
Nacreous
Sep 20, 2018Hi,
Did you remember to set header "Content-Range" and value? If not, this is probably the main cause.e.g.
filename=certfile.crt
filesize=$(stat -c%s "$filename")
curl -kv -u admin:admin -X POST -H "Content-Type: application/octet-stream" -H "Content-Range: 0-$[filesize-1]/$filesize" --data-binary "@$filename" https://192.168.1.245/mgmt/shared/file-transfer/uploads/$filename | json-format
Regards.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects