Index: gnu/java/net/protocol/http/Connection.java =================================================================== RCS file: /cvs/gcc/gcc/libjava/gnu/java/net/protocol/http/Connection.java,v retrieving revision 1.22 diff -u -r1.22 Connection.java --- gnu/java/net/protocol/http/Connection.java 22 Oct 2004 21:15:38 -0000 1.22 +++ gnu/java/net/protocol/http/Connection.java 26 Oct 2004 11:47:14 -0000 @@ -391,7 +391,8 @@ } /** - * Returns on OutputStream for writing to this connection. + * Returns on OutputStream for writing to this connection. This method + * implicitely changes request method to POST. * * @return An OutputStream for this connection. * @@ -410,6 +411,9 @@ if (bufferedOutputStream == null) bufferedOutputStream = new ByteArrayOutputStream (256); //default is too small + // Force POST request method. + setRequestMethod("POST"); + return bufferedOutputStream; }