Http_1 Flashcards

1
Q

Uniform Resource Locator URL

A

Address of resource on the internet

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

URL Scheme

A

http - how to access a resource (other https, ftp, mailto)

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

Host

A

staples.com what is hosting the resource (could use IP address)

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

Url Path

A

Specific resource

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

Http default port

A

80

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

Network Port definition

A

An endpoint of communication in an operating system; specific services listen to prots

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

Network socket definition

A

An internal endpoint for sending or receiving data at a single node in a computer network

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

Url fragment

A

Information followed by a # used on client side to navigate to a specific section of a resources (Angular route)

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

Mime standards

A

Content type - label the content of an internet request – how a client interprets the http response

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

Http/1.1

A

Defines the language used to communicate html requests and responses

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

Http request

A

What the client sends

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

Http response

A

Response from server

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

Http transactions

A

1 request and response

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

URL Canonicalization

A

Convert all requests to same scheme ie all requests go to www.

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

Http Methods

A

Get; Post (Put, Delete, Head, Paste)

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

Safe Http method

A

Get – refresh as many times as you want

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

Postback

A

Data on the page is posted from the client to the server (posted to the same page the user is viewing

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

Callback

A

Special type of postback - a quick roundtrip to the server to get a small amount of data - calling the server and receiving some data back

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

PRG

A

Post / Redirect/ Get

20
Q

Request Message syntax

A

Method URL Version Headers Body

21
Q

Request Headers

A

Help with content negotiation Host header required Any header included must be honered

22
Q

Common Request headers

A

Referer, User-Agent, Cookie, Accept

23
Q

Response Message syntax

A

version status reason headers body

24
Q

Status code 100

A

Informational

25
Q

Status code 200

A

Successful

26
Q

Status code 300

A

Redirect

27
Q

Status code 400

A

Client error

28
Q

Status code 500

A

Server errors

29
Q

TCP

A

Transmition control protocol (Transport layer)(reliable)

30
Q

IP

A

Internet Protocol(Network layer)(creates packets)

31
Q

Data Link Layer

A

Resposible for carrying 0 and 1’s from one location to another

32
Q

Parallel connections

A

Allow the client to download data on mulitiple connections

33
Q

Persistant connection

A

Socket remains open

34
Q

Proxy Server

A

Sits between the client and the server; access control device; inspect messages; log messages; load balancing

35
Q

Stateless

A

Each request is independent of another request

36
Q

_viewState

A

Used to manage state on asp .net web forms; passed in http messages

37
Q

Cookies

A

Used to track and identify users; not used for authentication; assign a unique id

38
Q

Where are cookies set

A

in the header; SET-COOKIE - browser specific

39
Q

Session Cookies

A

Good for 1 session

40
Q

Persistant cookies

A

Persisit – must have an expiration value

41
Q

Basic Authentication

A

Not considered secure rarely used other then with https; url encoded

42
Q

Digest Authentication

A

A step up from basic authentication, request is encrypted –rarely used

43
Q

Windows authentication

A

Commonly used for intranet; cs.staples.com uses windows

44
Q

Forms Authentication

A

Most popular, not standard. A form accepts pw and login; only secure with https

45
Q

HTTPS

A

Same as SSL; Encrypts messages; default port 443;

46
Q

How does https work?

A

Adds SSL/TLS layer; encrypts; server must have a certificate; browser validates that it is communicating with correct server; all traffic is encrypted; client is not authenticated via https

47
Q

HTTPS downsides

A

Computationally expensive; can’t cache in public cache; expensive to set up and maintain