Hi Guys
When I try sending the https post request through the
java program
String param = "https://abcdefg.com";
URL url = new URL(param);
HttpsURLConnection httpConnection =
(HttpsURLConnection)url.openConnection();
jrunCookie = httpConnection.getHeaderField("set-cookie");
httpConnection.setUseCaches(false);
httpConnection.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
httpConnection.setRequestProperty("referer", param);
HttpsURLConnection.setFollowRedirects(false);
httpConnection.setInstanceFollowRedirects(false);
httpConnection.setDoInput(true);
httpConnection.setDoOutput(true);
httpConnection.setRequestMethod("POST");
it throws the exception and exception reads as URL is not correct. it should be abcdef.com
Could sanyone help me with the code forthis perpose.