View RSS Feed

Java Socket

Java - URL Processing

Rate this Entry
by , 04-25-2012 at 10:23 PM (952 Views)
At World Wide Web, Uniform Resource Locator presents a resource, like a FTP directory or web page.
This section will show that how Java programs are written to do communicate with a URL. A URL could be divided into parts as following:

protocol://host:port/path?query#ref

Protocols examples are HTTP, FTP, HTTPS & File. The path is known as the filename & the host is known as authority.

http://www.test.com/index.htm?language=en#j2se

Port is not specified by this URL so default port is used in this case. Default port in case of HTTP is 80.

Submit "Java - URL Processing" to Facebook Submit "Java - URL Processing" to Digg Submit "Java - URL Processing" to del.icio.us Submit "Java - URL Processing" to StumbleUpon Submit "Java - URL Processing" to Google

Categories
Tutorial

Comments