• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

query on proxy connection in Java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
There are two hosts ,primary host is there in our network with proxy enabled and secondary host is there in private network(out side our network). If we want to connect from primary to seconday, connection should pass through proxy.

Our probelm is that, when we use below java code, in general , if we use below code(Proxy.NO_PROXY) on primary , then conection shouldn't happen between primary and secondary.But connection is getting established. Is this known fact about Java?

Java Code:
URL url = new URL("http://hostname.mydomain.com/");
URLConnection conn = url.openConnection(Proxy.NO_PROXY);
 
reply
    Bookmark Topic Watch Topic
  • New Topic