Article View: borland.public.jbuilder.java.api
Article #2044reading from a WebServer
From: Francisco Gongora
Date: Tue, 03 Jul 2001 16:24
Date: Tue, 03 Jul 2001 16:24
20 lines
1561 bytes
1561 bytes
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
Technical Details
Message-ID:
<3b41f1d3$2_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,a00c3485de066936,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-07-03 09:36:37 PST Reply-To: "Francisco Gongora" <fgongora@metilinx.com> From: "Francisco Gongora" <fgongora@metilinx.com> Newsgroups: borland.public.jbuilder.java.api Subject: reading from a WebServer Date: Tue, 3 Jul 2001 12:24:41 -0400 Lines: 23 Organization: Metilinx X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 65.160.52.2 Message-ID: <3b41f1d3$2_2@dnews> X-Trace: dnews 994177491 65.160.52.2 (3 Jul 2001 09:24:51 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews