kokarare1212/librespot-python

proxy support [REQUEST]

Pranavprana opened this issue · 1 comments

I was searching around how would I use proxy with the socket

https://stackoverflow.com/questions/13480141/establishing-a-tcp-connection-through-an-authenticated-http-proxy

I tried this but having an issue did you already figure it out ??

found something that'll work with c#
https://stackoverflow.com/questions/35066981/how-to-use-proxy-with-tcpclient-connectasync

s.connect((proxy.split(":")[0], int(proxy.split(":")[1])))
a = f'CONNECT {address[0]}:{address[1]} HTTP/1.1\n\n'.encode('utf-8')
s.send(a)