HTTP Flashcards

0
Q

What part of the URL is known as the scheme?

A

The bit prior to the ://

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What do you use to locate a resource?

A

A URL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the URL scheme do?

A

Describes how to access the resource

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is a legal http URL a legal mailto URL?

A

No, not necessarily.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

After the host segment in the URL, what is the next segment called?

A

The URL path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is more important in URLs today, descriptive keywords, or file names, and why?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What other resources may be downloaded when visiting a URL?

A

CSS, images scripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Everything after the ? Mark is known as what?

Www.food.com/search?q=broccoli

A

A query, or query string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the formal standard for query strings?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a fragment?

A

It is the bit after the # symbol

Server.com?recipe=broccoli#ingredients

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is a URL fragment different to a URL query string?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the full breakdown of a URL?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Is the URL path case sensitive?

A

Yes, but most web servers treat them as case insensitive to prevent broken links.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What characters are safe to use in a URL?

A

US ASCII, : and /

You can’t use ‘Space’, # or ^

How well did you know this?
1
Not at all
2
3
4
5
Perfectly