URLs and such

Dr. Greg Bernstein

Updated March 8th, 2020

Web Resources

Readings

The following is very well written and well illustrated and forms the basis for these slides:

Identifying Resources on the Web.

URx?

  • URI: Uniform Resource Identifier — this is the most general term.

  • URL: Uniform Resource Locator — these are what we will work with.

  • URN: Uniform Resource Name — Won’t be dealing with these for now.

Example URLs

From MDN

https://developer.mozilla.org
https://developer.mozilla.org/en-US/docs/Learn/
https://developer.mozilla.org/en-US/search?q=URL
http://www.example.com:80/path/to/myfile.html?key1=value1&key2=value2#SomewhereInTheDocument

Parts of a URL

  • Protocol/Scheme
  • Authority/Domain
  • Path (/)
  • Query (?)
  • Fragment (#)

Protocol/Scheme

From MDN

Other protocols include: https, ftp, ssh,…

Authority

From MDN

Port

From MDN

This is the destination TCP port

Path

From MDN

Why did MS have to use \?

Query/Parameters

From MDN

Fragment

From MDN