SmartTube icon indicating copy to clipboard operation
SmartTube copied to clipboard

[BUG]: HTTP proxy authorization is not supported

Open dansoftware opened this issue 6 months ago • 1 comments

Checklist

  • [X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • [X] I have read the FAQ and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one bug.

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

dansoftware avatar Jul 31 '24 14:07 dansoftware