Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access url through proxy

 
Supun Lakshan Dissanayake
Ranch Hand
Posts: 135
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Supun Lakshan Dissanayake
Ranch Hand
Posts: 135
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic