Intern Track Roadmap

URL anatomy

This course breaks a URL into its parts and explains what each one does. It starts with the difference between URL, URI and URN, then covers the scheme, host and domain, port, path, query string and fragment. It explains percent encoding for reserved and non-ASCII characters, and why secrets in query strings can leak. The last lesson shows how Rails works with URLs through the router, _path and _url helpers, the request object and slugs.

What you'll learn

  • ✓The components of a URL and how URL, URI and URN differ
  • ✓How schemes select protocols such as HTTP, HTTPS and WebSocket
  • ✓Domain structure, subdomains, DNS resolution and localhost
  • ✓Ports, path segments and RESTful path conventions
  • ✓Query strings, fragments and percent encoding
  • ✓Rails routes, _path and _url helpers, and the request object
Free preview · Lesson 1 5 min read

What is a URL?

Every time you click a link, type an address in your browser, or submit a form: you're using a URL. It's so common that most people never think about what it is.

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...