Can't get any response from HttpsURLConnection

sorry, i've reformat the code here again

Deal frens,

Currently i'm doing a code to get a response from https link in my servlet. I don't know where the lack of my coding, but i don't get any response from the server when i execute my code. here is my code

import java.io.*;

import java.net.*;

import javax.servlet.*;

import javax.servlet.http.*;

import javax.net.ssl.*;

publicclass Servlet1extends HttpServlet{

privatestaticfinal String CONTENT_TYPE ="text/html";

//Initialize global variables

publicvoid init()throws ServletException{

}

//Process the HTTP Get request

publicvoid doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{

response.setContentType(CONTENT_TYPE);

PrintWriter out = response.getWriter();

String authentURL ="https://server1.tst.cvs/servlet/RequestHandler?login=admin&pwd=admin&method=viewUser&username=00032a0183db";

out.println("<html>");

out.println("<head><title>Servlet1</title></head>");

URL url =new URL(authentURL);

HttpsURLConnection URLconn = (HttpsURLConnection) url.openConnection();

// HttpsURLConnection conn = null;

URLconn.setDoInput(true);

URLconn.setDoOutput(true);

URLconn.setRequestMethod("GET");

URLconn.setUseCaches(false);

OutputStream authOut = URLconn.getOutputStream();

BufferedReader reader =new BufferedReader(new InputStreamReader(URLconn.getInputStream()));

out.println("<body bgcolor=\"#ffffff\">");

out.println("

The servlet has received a GET. This is the reply.

");

out.println("output"+authOut);

out.println("output2"+URLconn.getContent().toString());

out.println("output3"+reader);

out.println("</body></html>");

}

//Clean up resources

publicvoid destroy(){

}

}

the result suppose i get when i execute the script is..

userdata=234&uname=00032a0183db&concurrentlogins=1

i don't have any problem when i paste the link

https://server1.tst.cvs/servlet/RequestHandler?login=admin&pwd=admin&method=viewUser&username=00032a0183db

and i able to get the response

userdata=234&uname=00032a0183db&concurrentlogins=1

please..please help..what is wrong with my code

[3933 byte] By [manjemana] at [2007-11-27 8:04:54]
# 1
YOU DON'T READ ANYTHING IN YOUR CURRENT CODE !!!If you use a BufferedReader, then read the input stream via readLine() method.Default implementation of getContent() method is not generally usable for getting your desired "content". Experiment that.
hiwaa at 2007-7-12 19:47:22 > top of Java-index,Java Essentials,Java Programming...