L02-Background

L02-Background - Session 2 Background Session 2 Background...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Session 2 – Background 9/1/2010 1 © Robert Kelly, 2001-2010 Session 2 Background 1 Lecture Objectives Understand how an Internet resource is accessed Understand the high level structure of the “Internet cloud” Understand the high level structure of the TCP/IP protocols Understand how a computer finds the IP address © Robert Kelly, 2001-2010 of a host using DNS Know the structure of MIME type standards
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Session 2 – Background 9/1/2010 2 © Robert Kelly, 2001-2010 Reference Mime types http://www.w3schools.com/media/media_mimeref.asp Cyber Security Cyber War by Richard Clarke and Robert Knake, Harper Collins, 2010 © Robert Kelly, 2001-2010 3 What is a URL? A short string that identifies a resource on the Web Stands for Uniform Resource Locator Uniform – varied and new types of resources Resource – Anything that has identity (e.g., image) Reduces the tedium of connecting to a host, selecting a path, selecting a resource, etc. into a © Robert Kelly, 2001-2010 single string that: Can be saved as a bookmark in your browser Can be saved as an object in your Java code
Background image of page 2
Session 2 – Background 9/1/2010 3 © Robert Kelly, 2001-2010 URL Example http://www.cs.sunysb.edu Protocol identifier Resource name Protocol Identifier - Indicates the name of the protocol to be used to fetch the resource © Robert Kelly, 2001-2010 Resource name is the complete address of the resource Resource name may be appended with a fragment / reference / named anchor (denoted by #) or include a query string (denoted by ?) URL Resource Name For http, the name includes: host name, path name to the file, port number (optional), and location within the resource (optional) The resource is not necessarily a file, it can be generated on the fly Very important concept © Robert Kelly, 2001-2010 A trailing slash (www.sun.com/) is shorthand for the file named /index.html
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Session 2 – Background 9/1/2010 4 © Robert Kelly, 2001-2010 Relative URLs Contains only enough information to reach the resource relative to (in the context of) another URL Used within HTML files <td> <a href=“LectureCode.html“ >Intro</a></td> specified relative to the location of the file in which they are contained URL context = © Robert Kelly, 2001-2010 new URL("http://www.sciam.com/feature_directory.cfm"); URL aURL = new URL( context , "myImage.gif"); Examples of URL Schemes The standard Java library currently provides support for http and ftp Other protocols can be used with some extra coding tel:+358-555-1234567
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

L02-Background - Session 2 Background Session 2 Background...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online