2004-10-26 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java (getOutputStream): Implicitely switch to POST method. From-SVN: r89581
This commit is contained in:
parent
782fa603f9
commit
8db8c940f1
2 changed files with 10 additions and 1 deletions
|
@ -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.
|
||||
*
|
||||
|
@ -410,6 +411,9 @@ public final class Connection extends HttpURLConnection
|
|||
if (bufferedOutputStream == null)
|
||||
bufferedOutputStream = new ByteArrayOutputStream (256); //default is too small
|
||||
|
||||
// Force POST request method.
|
||||
setRequestMethod("POST");
|
||||
|
||||
return bufferedOutputStream;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue