* gnu/java/net/protocol/http/Connection.java
(getOutputStream): Implicitely switch to POST method.
From-SVN: r89581
+2004-10-26 Michael Koch <konqueror@gmx.de>
+
+ * gnu/java/net/protocol/http/Connection.java
+ (getOutputStream): Implicitely switch to POST method.
+
2004-10-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* libjava/java/lang/Class.h
}
/**
- * Returns on OutputStream for writing to this connection.
+ * Returns on OutputStream for writing to this connection. This method
+ * implicitely changes request method to <code>POST</code>.
*
* @return An OutputStream for this connection.
*
if (bufferedOutputStream == null)
bufferedOutputStream = new ByteArrayOutputStream (256); //default is too small
+ // Force POST request method.
+ setRequestMethod("POST");
+
return bufferedOutputStream;
}