QUERY · ISSUE
Can urequests use requests AuthBase classes from standard requests?
Can urequests use requests AuthBase classes from standard requests?
Thanks
CANDIDATE · ISSUE
POST Request with BASIC AUTH - How to?
Dear all,
I am trying to implement a simple pull request with basic auth on the esp32. As seen at https://github.com/micropython/micropython-lib/pull/311, it seems like it is implemented in urequests.post and can be called by: res = urequests.post(request_url, headers={'content-type': 'application/json'}, data=post_data, auth=('username','password')).json() print(res.text).
However it seems like this doesn't work. Am I not calling this function right? There seems to be no documentation on requests in the official documentation.
Sincerely with Many Thanks,
Clement