Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do we send multipart/form-data and file information via redfishtool.py ? #84

Open
mungayree opened this issue Jun 23, 2020 · 3 comments

Comments

@mungayree
Copy link

via redfishtool.py, I would like to send content-type as multipart/form-data and file information. I have this command via CURL, but how can we send this via redfishtool.py ?

time curl -k -u Administrator:superuser -X POST -H 'content-type: multipart/form-data' -F 
image_file=@$(pwd)/afile-v130.tgz 
https://<IP>/redfish/v1/UpdateService/Actions/Oem/UpdateService.FwUpldBundle
@mraineri
Copy link
Contributor

Currently that's not really possible. We could accommodate having the tool send a multipart request for something like an operation to the UpdateService when trying to perform an update, but all raw types of requests in the tool currently expect JSON encoding.

@mungayree
Copy link
Author

mungayree commented Jun 26, 2020 via email

@rosedahl
Copy link

Short Term

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants