public Request setBody(byte[] body, String contentType) { this.getRequestBody().setBody(body, contentType); return this; }
public Request setBody(byte[] body, String contentType) { this.getRequestBody().setBody(body, contentType); return this; }
public String getContentType() { return getRequestBody().getContentType(); }
public Request setBody(byte[] body, String contentType) { this.getRequestBody().setBody(body, contentType); return this; }
public byte[] getBytes() { return getRequestBody().getBytes(); }
public byte[] getBytes() { return getRequestBody().getBytes(); }
public String getContentType() { return getRequestBody().getContentType(); }
public String getContentType() { return getRequestBody().getContentType(); }
public byte[] getBytes() { return getRequestBody().getBytes(); }
conn.setDoOutput(true); conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); byte[] body = request.getRequestBody().asApplicationXWwwFormUrlencoded(); OutputStream outputStream = conn.getOutputStream(); try { String boundary = "----CurlyHTTPClientBoundary_" + System.currentTimeMillis(); conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary); byte[] body = request.getRequestBody().asMultipart(boundary); OutputStream outputStream = conn.getOutputStream(); try {
conn.setDoOutput(true); conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); byte[] body = request.getRequestBody().asApplicationXWwwFormUrlencoded(); OutputStream outputStream = conn.getOutputStream(); try { String boundary = "----CurlyHTTPClientBoundary_" + System.currentTimeMillis(); conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary); byte[] body = request.getRequestBody().asMultipart(boundary); OutputStream outputStream = conn.getOutputStream(); try {
conn.setDoOutput(true); conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); byte[] body = request.getRequestBody().asApplicationXWwwFormUrlencoded(); OutputStream outputStream = conn.getOutputStream(); try { String boundary = "----CurlyHTTPClientBoundary_" + System.currentTimeMillis(); conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary); byte[] body = request.getRequestBody().asMultipart(boundary); OutputStream outputStream = conn.getOutputStream(); try {