• 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

Firewalls

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I am trying to set the properties so that i can reach URL's using the Java URL class but usually i use this if there is a proxy



but after visiting some sites they said that if i want to connect to a URL outside a firewall(not sure if proxy and firewall are the same thing) i must do this and not the above code i listed
but the one below



The thing is i can't seem to find any information on Sun's site or on google using the firewallHost property. Currently i don't use a firewall so i can't really test this code out and would really appreciate any insight from anyone about this.

I also have a feeling that the firewallHost property is an old property that isn't used anymore but the thing is i can't confirm it.

From what i know is that if i have to reach a url via a proxy i would usually use the first code i listed above but what about reaching a url via a firewall. Aren't the codes the same as the first code i listed above?? Someone correct me if i am wrong

If they are not what is the correct way to do it?
Links to sites or sample codes would be helpful

Any help is greatly appreciated

Thank You

Your Sincerely

Richard West
reply
    Bookmark Topic Watch Topic
  • New Topic