SetSystemProperty("http.proxyHost", ProxyHost)
SetSystemProperty("http.proxyPort", ProxyPort)
SetSystemProperty("http.proxyUser", ProxyUsername)
SetSystemProperty("http.proxyPassword", ProxyPassword)
SetSystemProperty("https.proxyHost", ProxyHost)
SetSystemProperty("https.proxyPort", ProxyPort)
SetSystemProperty("https.proxyUser", ProxyUsername)
SetSystemProperty("https.proxyPassword", ProxyPassword)
...
Job.PostString("https://miurl/send", "prueba")
Job.GetRequest.SetContentType("application/json, application/x-www-form-urlencoded")
Job.GetRequest.SetHeader("Authorization", "key=" & Constantes.API_KEY)
Dim credenciales As JavaObject
credenciales.InitializeStatic("okhttp3.Credentials")
Dim credencialesStr As String
credencialesStr = credenciales.RunMethod("basic", Array (ProxyUsername, ProxyPassword))
Job.GetRequest.SetHeader("Proxy-Authorization", credencialesStr)
Job.GetRequest.SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0")
Job.GetRequest.SetHeader("Proxy-Connection", "keep-alive")
Job.Username = ProxyUsername
Job.Password = ProxyPassword