Hi sedj, thanks for your reply again.
I have tried to write codes and test according to your hint to me. The sample code is shown below:
-------------------------------------------------
import java.net.*;
import java.io.*;
public class TEST
{
public static void main(String[] args) throws Exception
{
URL uu = new URL("
HttpURLConnection conn = (HttpURLConnection) uu.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(conn.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}
---------------------------------------------------
if the URL is HTTP web page, it works well. But if I replace it to be another HTTPS web page (eg.
the program will throw a MalformedURLException exception. So is my program incorrect? Do u have any idea?
thanks!