Usage of method ProxyAuthenticationRequired

Hello !

I have a socket in my application where i’m able to specify HTTPProxyAddress and HTTPProxyPort, but now things are changed a little bit and i need to implement authentication… i’ve seen the method ProxyAuthenticationRequired but i didn’t understand very well how to pass login and password to it.

Can someone drop me a hint ?

Thanks !

PS. Auth proxy and password are saved on a database along with proxy address and port.

Just like in the AuthenticationRequired event, you set Name and Password and return True.

Hello Tim, thanks a lot for your time.

so i should just place

  Name = "myProxyName"
  Password = "myProxyPassword"
  Return True

into the ProxyAuthenticationRequired method ?

That’s correct.

Thanks a lot again @Tim Hare .