Introduction to HTTP Flashcards

1
Q

What is HTTP? and what does it do?

A

A request-response based protocol
A core operational protocol used by web clients (devices) and web servers

Enables web browser to communicate w/ web server that hosts a website

It works to transfer web resources such as HTML files, as the foundation of any data exchanges on the web

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

What is special about HTTPS

A

This is a secure form of sending information

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

Describe the request response pathway

A

Requests are sent by the client, usually a web browser, and the server replies w/ responses which may be the return of an image or an HTML page

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

What does an HTTP syntax include?

A

Method
Path
Versions
Headers

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

Do HTTP responses follow a similar format to the request?

A

YEs

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

What do HTTP status codes indicate?

A

Whether the HTTP request successfully completed or not

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

What is a status code?

A

A 3 digit number that corresponds w/ groups representing different types of results

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

What does HTTP Stand for?

A

Hypertext Transfer Protocol

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

What 4 things do an HTTP request consist of? Describe them

A

Method: describes the type of action that the client was to perform (get post put delete)
Path: representation of where the resource is stored on the webserver
Version
Headers

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

What are the primary/most commonly used HTTP methods? Describe them

A

GET: retrieves information from the given server
POST: used to send data to the server
PUT: updates whatever currently exist on the website w/something else
DELETE: removes the resource

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

Are there multiple versions of the HTTP protocol? Name 2

A

Yes, Version 1.1 & 2 are most used

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