File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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