[GH-ISSUE #127] proxy support [REQUEST] #15

Closed
opened 2026-02-27 08:11:26 +03:00 by kerem · 1 comment
Owner

Originally created by @Pranavprana on GitHub (May 2, 2022).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/127

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

Originally created by @Pranavprana on GitHub (May 2, 2022). Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/127 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
kerem 2026-02-27 08:11:26 +03:00
Author
Owner

@Pranavprana commented on GitHub (May 2, 2022):

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)

<!-- gh-comment-id:1115429756 --> @Pranavprana commented on GitHub (May 2, 2022): 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)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-python-kokarare1212#15
No description provided.