sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.75k stars 1.66k forks source link

problem with login and password using proxy connection #597

Open damianlabuda opened 4 years ago

damianlabuda commented 4 years ago

Hi, I'm creating a proxy server on my remote vps using 3proxy, when I make a connection via websocket using my http proxy on which I do not set the login and password, the connection is successful, the problem starts when i want to connect to my proxy using login and password, the connection is then rejected. I need authorization on a proxy server, Can anyone know how to solve this problem?

gniax commented 4 years ago

Not sure if I have the same error but it doesn't works too, if I configure my proxy to authorize my ip so I don't need credentials it works, otherwise if I use authentification to access proxy, it returns me this error: 09/04/2020 19:11:51|Fatal|WebSocket.Connect|WebSocketSharp.WebSocketException: An exception has occurred while reading an HTTP request/response. ---> System.IO.EndOfStreamException: The header cannot be read from

gniax commented 4 years ago

Solution found: Change your setProxy URL "http://xxx.xxx.xxx.xxx:port" to "httpxxx.xxx.xxx.xxx:port" Idk why

zHaytam commented 3 years ago

Solution found: Change your setProxy URL "http://xxx.xxx.xxx.xxx:port" to "httpxxx.xxx.xxx.xxx:port" Idk why

Doesn't this just make it so that it uses YOUR IP? Since the Proxy URL is now invalid.