This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes query on proxy connection in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "query on proxy connection in Java" Watch "query on proxy connection in Java" New topic
Author

query on proxy connection in Java

ramakrishna budida
Greenhorn

Joined: Aug 05, 2011
Posts: 1
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);
 
jQuery in Action, 2nd edition
 
subject: query on proxy connection in Java
 
Similar Threads
FTP Upload
Resolving relative URLs in HttURLConnection response message
HttpClient: Detect Proxy Settings or Configuration Script from HttpClient
Working with Internet URL from Eclipse
need help in conecting to host