Commit 8db8c940 by Michael Koch Committed by Michael Koch

2004-10-26 Michael Koch <konqueror@gmx.de>

	* gnu/java/net/protocol/http/Connection.java
	(getOutputStream): Implicitely switch to POST method.

From-SVN: r89581
parent 782fa603
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> 2004-10-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* libjava/java/lang/Class.h * libjava/java/lang/Class.h
......
...@@ -391,7 +391,8 @@ public final class Connection extends HttpURLConnection ...@@ -391,7 +391,8 @@ public final class Connection extends HttpURLConnection
} }
/** /**
* 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. * @return An OutputStream for this connection.
* *
...@@ -410,6 +411,9 @@ public final class Connection extends HttpURLConnection ...@@ -410,6 +411,9 @@ public final class Connection extends HttpURLConnection
if (bufferedOutputStream == null) if (bufferedOutputStream == null)
bufferedOutputStream = new ByteArrayOutputStream (256); //default is too small bufferedOutputStream = new ByteArrayOutputStream (256); //default is too small
// Force POST request method.
setRequestMethod("POST");
return bufferedOutputStream; return bufferedOutputStream;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment