public class HttpsUtils extends Object
Utility to provide the following to HTTPS application code:
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
doPost(URL url,
byte[] payload,
String contentType)
Perform a post of the specified bytes to the specified URL
|
public static byte[] doPost(URL url, byte[] payload, String contentType) throws IOException
url - The URL to post topayload - the bytes to postcontentType - The content type (e.g. "application/octet-stream")IOExceptionCopyright © 2015–2016. All rights reserved.