facebook

Newbie behind a proxy

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268034 Reply

    SDI
    Member

    Hi all,

    I’m a total newbie in Java dev and have a strange problem. Here is my code:

    try {
    URL url = new URL(“http://www.google.com”);
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
    String str;
    while ((str = in.readLine()) != null) {
    System.out.println(str);
    }
    in.close();
    }
    catch (Exception e)
    {
    e.printStackTrace();
    }

    The response is a timed out error message. I have configured MyEclipse with the correct proxy parameters, but when I debug, I can see the attempt of direct connexion to amazon (or anything in the other side of our proxy).
    Somebody as an idea ? Did I make something wrong ? Or did I haven’t understand something ?

    Thanks a lot.

    #268068 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Newbie behind a proxy

You must be logged in to post in the forum log in