--- java/src/org/apache/xindice/server/services/HTTPServer.java	Mon Mar 11 13:32:36 2002
+++ java/src/org/apache/xindice/server/services/HTTPServer.java	Wed May 15 14:38:15 2002
@@ -431,7 +431,7 @@
                      // Store the post data in memory
                      postdata = new byte[postlen];
                      try {
-                        dis.read(postdata);
+                        dis.readFully(postdata);
                      }
                      catch ( Exception e ) {
                         connected = false;
@@ -452,7 +452,7 @@
                            if ( count > 0 )
                               os.write(buffer, 0, count);
                         }
-                        while ( count == chunkSize );
+                        while ( count != -1 );//== chunkSize );
                         os.close();
                      }
                      catch ( Exception e ) {
