🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #934

Re: Connection Refused??

#934
From: Cannon
Date: Fri, 07 Jan 2000 00:00
25 lines
1963 bytes
InputStream is a basic class using your local file system.
I think your problem is of trying to connect to the Internet without
establishing a proper client that is socket connection...

Tony F. White <tony@worldlingo.com> wrote in message
news:3873f65d_2@news.ausmail.com...
> Does anyone have any idea why the following code would work for
> http://localhost/jserv/index.html
> but not
> http://www.java.sun.com/index.html
>
>         URL inputUrl = new URL(input.trim()); /*where input is a string
> containing a http: address */
>         InputStream inputStream = inputUrl.openStream();
>
> the code throws the following exception:
>         java.net.ConnectException: Connection refused: no further
> information
>
>
> I have tried using the longer version of openstream and it throws the
> exception when it trys to get the inputstream
> (Note the code is part of a servlet)
>
>
Technical Details
Message-ID: <gifd4.314$Ov3.14614@nsw.nnrp.telstra.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3873f65d_2@news.ausmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5d71,3b83b41b4e779962
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 111d6b,3b83b41b4e779962
X-Google-Attributes: gid111d6b,public
X-Google-Thread: 10d6db,b2135abe5ab317a1
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 10a146,b2135abe5ab317a1
X-Google-Attributes: gid10a146,public
From: "Cannon" <wb@nospam.basketball.net.au>
Subject: Re: Connection Refused??
Date: 2000/01/07
Message-ID: <gifd4.314$Ov3.14614@nsw.nnrp.telstra.net>
X-Deja-AN: 569427326
References: <3873f65d_2@news.ausmail.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 947224844 203.35.100.252 (Fri, 07 Jan 2000 17:00:44 EST)
Organization: Customer of Telstra Big Pond Direct
X-MSMail-Priority: Normal
Reply-To: "Cannon" <wb@nospam.basketball.net.au>
NNTP-Posting-Date: Fri, 07 Jan 2000 17:00:44 EST
Newsgroups: aus.computers.java,comp.lang.java,comp.lang.java.misc,comp.lang.java.programmer