With the URL package provided by Java, we can download the web from the specified URL as the IE browser, and the download is definitely true HTML, using this principle we can make your own kernel browser! Please see this source program for implementation: import java.net.url; import java.net.urlConnection; import java.io ioException; import java.util.date; public class urlc {void display () {byte BUF [ ] = new byte [100]; try {system.out.print ("Please enter the URL address of the file:"); // read the URLint Ount = System.in.In.read (BUF) of the user input; string addr = new String (buf, 0, count); // Transfer the URL string input by the user into the URL class object URL URL = New URL (AddR); // Create a URLConnection object, use the URL's OpenConnection method to return the connection to the object of UrlConnection // The return value of the OpenConnection of the URL is a URLConnectionURLConnection C = Url.OpenConnection (); // establishes connect C.Connect (); // shows the connection information, these are UrlConnection method system.out.println ("Content Type:" C.GetContentType ()); System.out.Println ("Content Code:" C.getContenTentence ()); System.out.Println ("Content Length : " C.GetContentLength ()); System.out.println (" Created Date: " New Date (C.Getdate ())); System.out.Println (" Last Modified Date: " New Date (C .getlastmodified ()))); system.out.println ("Termination Date:" New Date (C.GETEXPIRATION ());} catch (ioException e) {system.out.println (e);}} public static Void main (String [] args) {urlc app = new urlc (); app.display ();}}