HTTP Flashcards
What part of the URL is known as the scheme?
The bit prior to the ://
What do you use to locate a resource?
A URL
What does the URL scheme do?
Describes how to access the resource
Is a legal http URL a legal mailto URL?
No, not necessarily.
After the host segment in the URL, what is the next segment called?
The URL path
What is more important in URLs today, descriptive keywords, or file names, and why?
Descriptive keywords in a URLs - this is due to SEO, plus URLs may outlive technology, and file names are usually tied to an implementation, so allowing the app to build the resource based on URL is more flexible.
What other resources may be downloaded when visiting a URL?
CSS, images scripts
Everything after the ? Mark is known as what?
Www.food.com/search?q=broccoli
A query, or query string
What is the formal standard for query strings?
None exists, it’s up to the developer to parse the string, but it usually consists of name value pairs:
www.foo.com?first=Scott&last=Allen
What is a fragment?
It is the bit after the # symbol
Server.com?recipe=broccoli#ingredients
How is a URL fragment different to a URL query string?
The fragment is not processed by the server - it is client side only and is used to mark or identify a particular section of the resource. Usually a specific HTML element by its ID.
What is the full breakdown of a URL?
Is the URL path case sensitive?
Yes, but most web servers treat them as case insensitive to prevent broken links.
What characters are safe to use in a URL?
US ASCII, : and /
You can’t use ‘Space’, # or ^