HttpConnection.writeOutput(byte[] body) 方法

定义

Saves the body to be sent with the request.

public void writeOutput(byte[] body)

参数

body
byte []

The request body.

例外

IllegalArgumentException

if the request does not currently use method POST or PUT and the body is non-empty. This is because Java's HttpsURLConnection silently converts the HTTPS method to POST or PUT if a body is written to the request.

适用于