8000 Support form data for PUTs by AlejandroHuerta · Pull Request #105 · adafruit/Adafruit_CircuitPython_HTTPServer · GitHub
[go: up one dir, main page]

Skip to content

Support form data for PUTs #105

8000
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

Closed
wants to merge 1 commit into from

Conversation

AlejandroHuerta
Copy link

Building a project that interacts with an API (Alpaca ASCOM) that performs PUTs to devices. Need to support form data when PUTs are performed.

@michalpokusa
Copy link
Contributor

This is intentional behaviour.

The form data should be accessible only on POST requests, as the HTML <form> tag only supports GET and POST, there is no plain way to make a PUT request with form without using JS.

When accessing the body of request is needed on e.g. PUT or PATCH requests, you could use request.json() or request.body and parse it accordingly.

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

Successfully merging this pull request may close these issues.

2 participants
0