Hi everyone!
I am fairly new to MicroPython but had great fun tonight playing around with it.
The session resulted in a bit of source code for making HTTP POST requests to SSL URLs with support for Basic Auth and with the data sent as x-www-form-urlencoded. Anyone looking to do the same can find the code here:
https://github.com/46elks/46elks-gettin ... opython.py
Making HTTPS POST requests with basic auth
Re: Making HTTPS POST requests with basic auth
Dear Johannesl
Thanks very much. This is very helpful. I will try and implement tonight and I will report progress if it is successful.
Thanks very much. This is very helpful. I will try and implement tonight and I will report progress if it is successful.
Re: Making HTTPS POST requests with basic auth
Slight issue:
In line 21 of your code:
TypeError: string indices must be integers, not str
Investigating
In line 21 of your code:
TypeError: string indices must be integers, not str
Investigating
Re: Making HTTPS POST requests with basic auth
Happy to see this example was helpful!
I just confirmed that the code from the above GitHub link works using the latest MicroPython 1.15.
What MicroPython version and architecture are you using?
I just confirmed that the code from the above GitHub link works using the latest MicroPython 1.15.
What MicroPython version and architecture are you using?