mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-25 08:35:49 +03:00
[GH-ISSUE #127] proxy support [REQUEST] #15
Labels
No labels
bug
dependencies
duplicate
enhancement
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot-python-kokarare1212#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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)