[issue40968] urllib is unable to deal with TURN server infront

2020-06-16 Thread Christian Heimes
Christian Heimes added the comment: Look closer at the traceback. You'll see that urllib follows redirects (http_response -> http_error_302 -> open -> HTTPSConnection). curl doesn't follow redirects by default. -- ___ Python tracker

[issue40968] urllib is unable to deal with TURN server infront

2020-06-16 Thread Paul Menzel
Paul Menzel added the comment: Wow, great job in figuring this out. Passing the context, it works here too. I just wanted to add, that I looked at this with Wireshark, and to not complicate things, first tried plain HTTP. ``` $ curl http://jitsi.molgen.mpg.de 301 Moved Permanently 301 Move

[issue40968] urllib is unable to deal with TURN server infront

2020-06-16 Thread Christian Heimes
Christian Heimes added the comment: It looks like the server is refusing requests that don't have an ALPN extension set in TLS layer. At first I though that the server may only support HTTP/2. The curl requests in your examples uses HTTP/2. urllib only supports HTTP/1.1 and HTTP/1.0. Then I

[issue40968] urllib is unable to deal with TURN server infront

2020-06-14 Thread SilentGhost
Change by SilentGhost : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue40968] urllib is unable to deal with TURN server infront

2020-06-13 Thread Paul Menzel
New submission from Paul Menzel : Having the TURN server Coturn [1] set up in a Jitsi Meet installation, Python’s urllib requests fail, while it works with cURL and browsers. ``` $ curl -I https://jitsi.molgen.mpg.de HTTP/2 200 server: nginx/1.14.2 date: Sat, 13 Jun 2020 11:09:19 GMT content-t