accessing webserver which is behing proxy server

Discussion in 'Java' started by diya, Apr 21, 2006.

  1. diya

    diya Guest

    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?
    diya, Apr 21, 2006
    #1
    1. Advertising

  2. diya

    Rob@Bedford Guest

    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");
    Rob@Bedford, Apr 21, 2006
    #2
    1. Advertising

  3. jcsnippets.atspace.com, Apr 21, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Murari
    Replies:
    3
    Views:
    623
    GIMME
    Apr 6, 2004
  2. Jeffery J. Morgan

    Help with accessing webserver

    Jeffery J. Morgan, Sep 2, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    364
  3. =?Utf-8?B?UGF0Qg==?=

    What happened to the Global class code behing in 2.0?

    =?Utf-8?B?UGF0Qg==?=, Jul 16, 2007, in forum: ASP .Net
    Replies:
    15
    Views:
    548
    Steven Cheng[MSFT]
    Jul 19, 2007
  4. Jake

    VB and get text behing java

    Jake, Nov 7, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    126
  5. Avishesh
    Replies:
    0
    Views:
    105
    Avishesh
    Aug 28, 2003
Loading...

Share This Page