HTTP protocol Flashcards

1
Q

Client server communication is fascilitated with

A

HTTP

Used to exchange text documents

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

Rest API

A

Used to define the api that the server expose and which the client can use to communicate with the server

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

………….. is a higher level protocol

A

SOAP

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

Clinet sends a request

Usually contain a method either get/put/post/delete

A

Server response

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

Http request message

Contain atleast 3 major parts

A

Request line - specifies the details of the request message
Headers - additional information
Blank line
Body - contain actual data - may be blank

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

Request line

A

Method - get/put/post/delete….
Url
Version - for http

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

Header

A
Header field name : value
Host
Connection
User-agent
Accept-encoding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Body

A

Xml, json

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

Response message

A

Status line - response code
Header
Blank line
Response data

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

200

A

Ok

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

201

A

Created

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

301

A

Moved permanently

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

304

A

Not modified

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

400

A

Bad request

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

401

A

Unauthorized

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

403

A

Forbidden

17
Q

404

A

Not found

18
Q

422

A

Unprocessable entry

19
Q

500

A

Internal server error

20
Q

505

A

Http version not supported

21
Q

Server may send back data in a specific format

A

Extensible markup language(xml)

Javascript object notation (json)

22
Q

Http can transfer

A

Only ascii formated messages