This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Access url through proxy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Access url through proxy" Watch "Access url through proxy" New topic
Author

Access url through proxy

Supun Lakshan Dissanayake
Ranch Hand

Joined: Oct 26, 2012
Posts: 132

Hi folks!,
I can access a url and get it's response using following code snippet WITHOUT PROXY.

but my company internet connection provide internet through following ip 192.168.1.1 and 3128 port.

So I'm not able to connect above url("http://www.example.com/example?id=1") with proxy.

I tried to use java.net.Proxy. But NO idea how to.

Any help will appreated.

Thanks!


Are you better than me? Then please show me my mistakes..
Supun Lakshan Dissanayake
Ranch Hand

Joined: Oct 26, 2012
Posts: 132

Solved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access url through proxy
 
Similar Threads
Working with Internet URL through Proxy from Java Code
Generated Stub and Proxy Settings !!
Java Mail behind Proxy
Working with Internet URL from Eclipse
java.net with Proxy