>
> I am referring to download. I will start looking into the sockets of
> httpcore and see if I can create a patch.
>

  If you want a progress bar you can do something like this:

       method = new GetMethod(url);
         try{
            client.executeMethod(method);
            in = method.getResponseBodyAsStream();
        } catch (HttpException he) {

        }
        catch (IOException ioe){
            System.err.println("Unable to connect to '" + url + "'");
            System.exit(-3);
        }

        ProgressMonitorInputStream pin = new
ProgressMonitorInputStream(null, "Downloading file", in);

        Get content length from the header then
        pin.getProgressMonitor().setMaximum((int)contentLength );

        Use the ProgressMonitorInputStream to write the file..

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to