yuliskov / SmartTube

SmartTube - an advanced player for set-top boxes and tvs running Android OS
https://www.patreon.com/smarttube
Other
20.19k stars 1.09k forks source link

[BUG]: HTTP proxy authorization is not supported #3788

Open dansoftware opened 4 months ago

dansoftware commented 4 months ago

Checklist

Affected version

22.77

Device Type

Smart TV/Box

Affected Android

Android TV 9

Steps to reproduce the bug

Go to Settings and fill in all the parameters to connect via an HTTP proxy with authorization.

Actual behavior

SmartTube does not send proxy-authorization credentials when it connects to a HTTP proxy. There is no such problem with SOCKS. Here is a connection request to a HTTP proxy from SmartTube:

Hypertext Transfer Protocol
    CONNECT www.google.com:443 HTTP/1.1\r\n
    Host: www.google.com:443\r\n
    Proxy-Connection: Keep-Alive\r\n
    User-Agent: okhttp/3.12.13\r\n
    \r\n

The same request to the same proxy from a web browser:

Hypertext Transfer Protocol
    CONNECT www.google.com:443 HTTP/1.1\r\n
    Host: www.google.com:443\r\n
    Proxy-Connection: keep-alive\r\n
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36\r\n
    Proxy-Authorization: Basic xxx\r\n
        Credentials: xxx:xxx
    \r\n

Additional information

No response

Eugene9891 commented 3 months ago

Same issue for me