Unable to post the data to server, getting error java.io.IOException: Server returned HTTP response code: 415
Iam unable to post the data to the server, getting error as . But it is working fine in curl script. Error reading URL java.io.IOException: Server returned HTTP response code: 415 for URL: https://8.7.177.4/api/domains/amj.nms.mixnetworks.net/subscribers/9001?do_not_disturb=no at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) at CurlAuthentication.authenticatePostUrl(CurlAuthentication.java:109) at CurlAuthentication.main(CurlAuthentication.java:134) Error reading URL Below is the