Misc Flashcards

1
Q

What is HTTP?

A

Hypertext Transfer Protocol, the data transfer protocol used on the internet. In order to fetch a web page, the browser must talk to the web server in HTTP language.

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

What is status 200?

A

The sever respond with a success status of 200 to the browser request.

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

What happens when you enter an address in the address bar in the browser?

A

Browsers request a page from web servers by sending them a usually short text called HTTP request. For example, to access the page http://www.example.org/index.html, browsers connect to the server www.example.org sending it a request that looks like the following one:

GET /index.html HTTP/1.1
Host: www.example.org

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

What is a HTTP response?

A

The server replies by sending the requested page preceded by a similar packet of text, called ‘HTTP response’. This packet may contain lines requesting the browser to store cookies:

HTTP/1.1 200 OK
Content-type: text/html
Set-Cookie: name=value
Set-Cookie: name2=value2; Expires=Wed, 09-Jun-2021 10:18:14 GMT

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