0 votes

In my job, we use ZSCALER as proxy and we set at browser at Address "http://pac.zscloud.net/....."
In my app I use the code bellow, but it isn't working.
Is possible get the automatic set from my browser? or as can I to do it to work?

--- Code ---
Dim proxyHost as string
Dim proxyPort as int
Dim proxyUser as string
Dim proxyPassword as string
proxyHost = ?????
proxyPort = 80
proxyUser = myUser
proxyPassword = myPassword
Dim factory As New ProxyFactory()
Dim proxy As IProxyClient = factory.CreateProxy(ProxyType.Http, proxyHost, proxyPort, proxyUser, proxyPassword)
Dim socket As Socket = proxy.Connect(_imapHost, Imap.DefaultSSLPort)
---- end code ----

closed with the note: No enough information
by (450 points)
closed by
Are you sure you need a proxy to access your email server?

Do you know your proxy server address, port and type?
You need to know those settings, please ask your administrator.

Are you getting any exception?
...