liveBook · Manning

Uri

As explained in The Well-Grounded Python Developer: How the pros use Python and Flask

A URL is an address that identifies a resource or logical location accessible through a network protocol.

A URL (uniform resource locator) uniquely identifies what a client requests from a server. Its domain name is translated by DNS into an IP address, while its slash-separated path identifies a logical resource. section 6.3

A URL can identify more than a website name:

  • The domain distinguishes servers, such as myserver.com and myserver.net. section 6.3
  • The port selects a service; HTTP commonly defaults to port 80 but can use another available port. section 6.3
  • The path presents a hierarchy that can map to a file, a handler, or an error response. section 6.3

A URL in an HTTP request

GET /path_part/index.html HTTP/1.1 requests the resource at the given path from fictional_website.com on port 80. The server can return a file, handler output, or error. section 6.3

How The Well-Grounded Python Developer: How the pros use Python and Flask covers it

How deep it goes
Explains domains, DNS translation, ports, paths, and server routing through a concrete HTTP request.
Examples
Uses a GET request for /path_part/index.html on fictional_website.com:80.
What it assumes
Assumes familiarity with clients, servers, HTTP requests, DNS, and network addressing.
What you can do after
Understand how URL components direct HTTP requests to files, handlers, or error responses.
How it connects
Connects URLs with DNS, IP addresses, HTTP, network protocols, ports, servers, and resource paths.

Also explained in

Compare how 9 books explain uri →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Well-Grounded Python Developer: How the pros use Python and Flask. The section links point to the parts of the book it draws on.