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

uploading multipart/form-data requests #89

Open
bozulbang opened this issue Dec 17, 2021 · 0 comments
Open

uploading multipart/form-data requests #89

bozulbang opened this issue Dec 17, 2021 · 0 comments

Comments

@bozulbang
Copy link

Issue:
adafruit_requests library should be able to easily upload multipart/form-data requests

Description:
The adafruit_requests library currently only lets you easily make requests via JSON or via url-encoded form parameters. It would be helpful if it also let you easily make multipart/form-data requests.

My use case is that I want to be able to call the Neocities file upload API from a CircuitPython device, so that I can update a website based on sensor data. This API only accepts multipart/form-data requests. I can build one by setting the Content-Type header and building up a request body manually, but it's the sort of thing I would prefer to have a library handle for me.

Can provide further detail upon request!

thanks for all you do.

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

No branches or pull requests

1 participant