Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

accessing webserver which is behing proxy server

Thread view: 
diya - 21 Apr 2006 12:29 GMT
Hi all,

I am trying to call web-browser in my java desktop application. I
succeeeded in calling webpage which is at the localhost but when i
tried to access any other website say http://www.google.com it gave an
error saying page not found. What might be the problem ?

Can anyone help me out with the same?
Rob@Bedford - 21 Apr 2006 14:01 GMT
Are you behind a proxy?  If so you have to set the java properties..

        System.getProperties().setProperty("http.proxyHost", "your proxy
host");
        System.getProperties().setProperty("http.proxyPort", "your proxy
port");
jcsnippets.atspace.com - 21 Apr 2006 20:44 GMT
> Are you behind a proxy?  If so you have to set the java properties..
>
> System.getProperties().setProperty("http.proxyHost", "your proxy
> host");
> System.getProperties().setProperty("http.proxyPort", "your proxy
> port");

Don't forget to "set" the proxy to true!

http://jcsnippets.atspace.com/java/network-stuff/how-to-set-a-proxy.html

Best regards,

JC
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.