I was trying out the Micropython library. The library doesn’t work at the moment. When using the library it can’t connect to the server because the redirect function is not yet implemented.
I implemented the redirect function and made a pull request. Now the library works again.