W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1997

Proxying PUTs

From: Gordon Dakin <gad@hunchuen.crystaliz.com>
Date: Wed, 22 Jan 1997 22:00:41 -0500
Message-Id: <199701230300.WAA27487@hunchuen.crystaliz.com>
To: gad@hunchuen.crystaliz.com, www-jigsaw@www10.w3.org

Awhile back, I nearly succeeded in making proxied PUTs work.
To do so, I borrowed a few methods from ForwardDirectory,
including w3c.www.protocol.http.Request dupRequest(Request request).
In that method, I set output stream from a local file:

    if (mth.equals("PUT"))
            FileInputStream iStream = new FileInputStream(mypath);
        catch (java.io.FileNotFoundException x)
            System.out.println("File not found");

The only glitch is, the content length of the remote Jigsaw's
FileResource is always wrong (around 100) when reaches the remote host,
so FileResource.newContent() hangs (in the in.read loop) or only gets
part of the file.

Do you know what I can set locally to ensure that the remote Jigsaw's
FileResource will have the correct content length?

-- Gordon Dakin
Received on Wednesday, 22 January 1997 22:02:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:30 UTC