Misc Flashcards
What is HTTP?
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.
What is status 200?
The sever respond with a success status of 200 to the browser request.
What happens when you enter an address in the address bar in the browser?
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
What is a HTTP response?
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