Java Reference
In-Depth Information
Figure 3.2: The Current Time
But to know how to extract this date and time, we need to see what this page looks like to
the computer. To do this, we must examine the HTML source. While viewing the above URL
in a web browser, select “View Source”. This will show you Listing 3.2.
Listing 3.2: HTML Source for the Current Time
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>HTTP Recipes</TITLE>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-cache">
</HEAD>
<BODY>
<table border="0"><tr><td>
<a href="http://www.httprecipes.com/">
<img src="/images/logo.gif" alt="Heaton Research Logo" bor-
Search WWH ::




Custom Search