🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2045

Re: reading from a WebServer

#2045
From: Nabin Thomas
Date: Fri, 06 Jul 2001 14:15
43 lines
2141 bytes
R u sure that u have closed the socket ?? if not try it.

Francisco Gongora wrote:

> Hi All:
> I am trying to read from a web server and write to the browser ( in a
> redirector progrram).
>
>     byte bb[] = new byte[512];
>     while (inWebServer.read(bb) >= 0) {
>       outBrowser.write(bb);
>       bout.flush();
>     }
>
> close all the Stream here...
>
> The browser gets the requested information ok, but the while cycle does not
> free the connection until later.  If I try to refresh in the browser, it
> will not do the transaction since the previous session have not finished
> yet.   If I open a new browser, the transaction is executed ok.
>
> Any help will be appreciated.
> Thanks.
> Frank

--

        ***********************************
***************************************************
******************* Web Card **********************
***************************************************

Name :   Nabin Thomas

e-mail :   nabinthomas@hotmail.com

Web :   http://nabin.topcities.com

Feel free to contact me thru e-mail or MSN Mssenger
if required but DONOT SPAM

***************************************************
 ***********************************
Technical Details
Message-ID: <3B45C818.B52AC103@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3b41f1d3$2_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a00c3485de066936
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-07-06 07:54:46 PST
Message-ID: <3B45C818.B52AC103@hotmail.com>
Date: Fri, 06 Jul 2001 19:45:52 +0530
From: Nabin Thomas <nabinthomas@hotmail.com>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: reading from a WebServer
References: <3b41f1d3$2_2@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 202.169.140.111
X-Trace: dnews 994430671 202.169.140.111 (6 Jul 2001 07:44:31 -0700)
Lines: 46
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews