Doing

Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxy.****.ru", 3128)); URLConnection urlConnection = new URL(url_).openConnection(proxy); urlConnection.setConnectTimeout(80000); urlConnection.setReadTimeout(80000); URL url = urlConnection.getURL(); 

as a result, the url variable is obtained without a proxy. and then it is transmitted without a proxy. What is the problem?

enter image description here

Closed due to the fact that off-topic participants Pavel Mayorov , aleksandr barakin , enzo , zRrr, user194374 Jun 30 '16 at 16:31 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Pavel Mayorov, aleksandr barakin, enzo, zRrr, Community Spirit
If the question can be reformulated according to the rules set out in the certificate , edit it .

    2 answers 2

    Because the URL is a string. It does not have any properties that would not depend on its textual representation. And since the name of the proxy server is not recorded anywhere inside the URL, then you see what you see.

    Here it is time to ask another question - what for there is a proxy field somewhere. Most likely, someone came to the programming method of the kettle.

    • not. That's not the problem - Senior Pomidor

    vSphere API requires a special path to sdk . Just specifying the server.com server fails, you need to add server.com/sdk

    • Sorry, but how is this answer related to the question? - Pavel Mayorov
    • who knows vijava, he will understand. The problem was this. but it gives out something completely different - Senior Pomidor
    • @SeniorAutomator understand what it is and why? - FORTRAN
    • @FORTRAN In short, you need to contact api, which is located in / skd. I only accessed the address, vijava is a library for managing the virtual infrastructure of Vmware vSphere. Though I voted to remove the question, I want to leave it, as it will help other people - Senior Pomidor
    • What is the practical use of this technology? - FORTRAN