URL’s: “How do they really work?”
URL stands for Uniform Resource Locator. A URL is a specific type of Uniform Resource Identifier (URI). A URL is called such for a reason: it's uniform!
Sean Kennedy
February 5, 2023
The Protocol
A protocol is a set method for exchanging or transferring data around a computer network
The Domain
The rightmost part is the Top-level domain or (TLD). There are a limited set of TLDs like “.com”, “.net” or “.dev” As of writing, there are 1589 TLDs, including most country codes.
The TLD is prefixed by one of more subdomains. e.g. (toddle.site) or (weather.toddle.site)
The Port
The Path
Traditionally, the path would match a file path on the server's hard drive, but this is more of a metaphor in modern web servers.
The path specifies what operation within an application should be performed. This includes what website page should be downloaded or what data should be fetched from a REST API.
The Query or Query Parameters
As a no-code developer, understanding query or query parameters is crucial when working with web-based services and APIs. Query parameters specify additional information or options when requesting a server. They are added to the end of a URL, following a "?" character. For example, when making a search request to a website, the search term may be passed as a query parameter, like this "[https://example.com/search?q=searchterm](https://example.com/search?q=searchterm)". The query parameter "q" specifies the search term, and the value "searchterm" is the actual search term entered by the user. Understanding how to use and construct query parameters allows you to communicate effectively with web services and APIs and to retrieve the data you need.
Additionally, query parameters can also be used to filter, sort, and paginate data, which are common features in web-based services and applications. Understanding how to use these types of query parameters will allow you to retrieve and display the desired data.
The Anchor
The anchor is only used in browsers, it is not sent to the server
How does this look when using toddle?