W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1996

proxied PUTs work

From: Gordon Dakin <gad@hunchuen.crystaliz.com>
Date: Thu, 21 Nov 1996 18:38:54 -0500
Message-Id: <199611212338.SAA09014@hunchuen.crystaliz.com>
To: gad@hunchuen.crystaliz.com, www-jigsaw@w3.org
After a couple of small tweaks, anyway.  I used the modified Request class
you sent me.  I made one more modification to getInputStream() -- maybe
I'm not initializing something, which forces me to change:

        if ((major == 1) && (minor == 0) && (in == null)) {
            String m = getMethod();
            if (m.equals("POST") || m.equals("PUT")) {
                keepcon = false;
                in      = parser.getInputStream();
            }
        }

to:

       if  (in == null) {
            String m = getMethod();
            if (m.equals("POST") || m.equals("PUT")) {
                keepcon = false;
                in      = parser.getInputStream();
            }
        }

I had one other glitch that seems more like a Java problem than jigsaw:

This loop hangs for some reason:

       for (int got = 0; (got = in.read(buf)) > 0;)
           fout.write(buf, 0, got);

in Request.newContent .

It seems to keep reading after all input is read, because it doesn't
hang if I limit the number of iterations to the actual number needed.
Any ideas?

Thanks,

Gordon Dakin
Received on Thursday, 21 November 1996 17:35:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT