| Free tutorials for Java, Eclipse and Web programming |
Version 0.6
Copyright © 2008 - 2010 Lars Vogel
22.04.2010
| Revision History | ||
|---|---|---|
| Revision 0.1 | 03.10.2008 | Lars Vogel |
| First Version | ||
| Revision 0.2 | 01.05.2009 | Lars Vogel |
| How to read a webpage with Java | ||
| Revision 0.4 | 25.07.2009 | Lars Vogel |
| Re-worked | ||
| Revision 0.5 | 21.12.2009 | Lars Vogel |
| How to use TinyUrl or Tr.im | ||
| Revision 0.6 | 22.04.2010 | Lars Vogel |
| How to set the proxy via command line | ||
Table of Contents
Java provides API's to access resources over the network, for example to read webpages. The main classes which are used to read web resources is "java.net.URL" and "java.net.HttpURLConnection". URL can be used to define a web resources while "HttpURLConnection" can be used to access the web resource.
The examples for this article are contained in project "de.vogella.web.html".