micropython-lib/python-ecosys/requests
黃昕暐 43ad7c58fd requests: Use the host in the redirect url, not the one in headers.
The host in headers extracted from the original url may not be the same as
the host in the redirect url.  Poping out the host in headers force the
code to use the host in the redirect url, otherwise the redirect may fail
due to inconsistence of hosts in the original url and the redirect url.

Signed-off-by: 黃昕暐 <meebox@gmail.com>
2025-04-12 10:47:56 +10:00
..
requests requests: Use the host in the redirect url, not the one in headers. 2025-04-12 10:47:56 +10:00
README.md requests: Rename urequests to requests. 2023-07-23 11:41:44 +10:00
example_xively.py requests: Rename urequests to requests. 2023-07-23 11:41:44 +10:00
manifest.py requests: Use the host in the redirect url, not the one in headers. 2025-04-12 10:47:56 +10:00
test_requests.py requests: Do not leak header modifications when calling request. 2024-12-12 00:27:39 +01:00

README.md

requests

This module provides a lightweight version of the Python requests library.

It includes support for all HTTP verbs, https, json decoding of responses, redirects, basic authentication.

Limitations

  • Certificate validation is not currently supported.
  • A dictionary passed as post data will not do automatic JSON or multipart-form encoding of post data (this can be done manually).
  • Compressed requests/responses are not currently supported.
  • File upload is not supported.
  • Chunked encoding in responses is not supported.