< Return to Video

servers browsers vII

  • 0:01 - 0:03
    Let's talk about browsers and servers.
  • 0:03 - 0:05
    This video will teach you
    about their purpose
  • 0:05 - 0:09
    and how they contribute to the giant
    network that we know as the Internet.
  • 0:09 - 0:12
    What happens when you request
    a website in your browser?
  • 0:12 - 0:15
    Well, every time you type
    a web address and press Enter,
  • 0:15 - 0:17
    a series of things happen
    in the few seconds
  • 0:17 - 0:20
    it takes for the website
    to appear on your screen.
  • 0:21 - 0:24
    Over recent decades
    there have been many web browsers.
  • 0:24 - 0:28
    Some of the most popular today
    are Chrome, Firefox, Safari,
  • 0:28 - 0:31
    Internet Explorer, and Opera.
  • 0:31 - 0:34
    All of these browsers serve the same basic
    purpose to display websites for you
  • 0:34 - 0:36
    to read and interact with.
  • 0:36 - 0:38
    But just how do they do this?
  • 0:39 - 0:42
    First, the browser takes
    the web address you provided
  • 0:42 - 0:44
    and sends a request
    to a server across the Internet
  • 0:44 - 0:46
    for the files that make up the website.
  • 0:46 - 0:50
    The contacted server is dedicated
    to hold the website's files.
  • 0:50 - 0:53
    It may even be thousands of miles
    away from you and your device.
  • 0:54 - 0:56
    Once a server receives the request,
  • 0:56 - 0:59
    it contains logic
    for processing the request
  • 0:59 - 1:02
    and identifying the files and data
    that the client has specified.
  • 1:02 - 1:06
    It responds to the browser's
    request with the necessary files.
  • 1:06 - 1:10
    This is a process that allows the browser
    to display website files to you
  • 1:10 - 1:12
    and it happens in a few seconds
    it takes for websites
  • 1:12 - 1:14
    to load on your device screen.
  • 1:15 - 1:18
    You may be asking yourself
    what is a server?
  • 1:18 - 1:21
    A server is a specialized computer
    connected to a network.
  • 1:21 - 1:24
    The role of this computer is to listen
    for requests from network devices
  • 1:24 - 1:26
    and send back data.
  • 1:26 - 1:30
    Servers provide or serve up
    resources like website files, data,
  • 1:30 - 1:33
    and assets like images or videos
    along with other cool things.
  • 1:33 - 1:36
    Servers are not like the computers
    you may be used to.
  • 1:36 - 1:38
    They are focused
    on data storage and retrieval
  • 1:38 - 1:41
    so they have no monitors or keyboards.
  • 1:41 - 1:43
    A server will need lots of computing power
  • 1:43 - 1:46
    to serve up websites that reach
    thousands or even millions of users.
  • 1:47 - 1:48
    Next, we need to understand
  • 1:48 - 1:51
    how the browsers and servers
    understand each other.
  • 1:51 - 1:53
    The Internet follows protocols or rules
  • 1:53 - 1:57
    that govern the format of data
    sent over the Internet or other networks,
  • 1:57 - 1:59
    Browsers and servers
    communicate with one another
  • 1:59 - 2:02
    using the Internet protocol known as HTTP.
  • 2:02 - 2:03
    You've seen this before.
  • 2:03 - 2:08
    HTTP, or hypertext transfer
    protocol, allows for data transfer.
  • 2:08 - 2:13
    When you see the 's' at the end of HTTP
    the data is being transferred securely.
  • 2:13 - 2:17
    An important part of the hypertext
    transfer protocol is that each request
  • 2:17 - 2:21
    has a request method that specifies
    the type of request being made.
  • 2:21 - 2:25
    For example, if the user
    is just asking to fetch a resource
  • 2:25 - 2:27
    this is specified as a GET request.
  • 2:27 - 2:30
    If a user is sending data
    to the server, for example,
  • 2:30 - 2:35
    such as submitting information via form
    this is specified as a POST request.
  • 2:37 - 2:39
    When the server sends back a response
  • 2:39 - 2:42
    it sends a status code that accompanies
    the requested resource.
  • 2:42 - 2:44
    You might be familiar
    with scene 404 error messages
  • 2:45 - 2:46
    when browsing the Internet.
  • 2:46 - 2:48
    This is an HTTP response code
  • 2:48 - 2:51
    that indicates that the requested
    content wasn't found.
  • 2:51 - 2:53
    HTTP provides a reliable structure
  • 2:53 - 2:56
    to the interplay between
    the client and the server.
  • 2:56 - 2:58
    Let's review what we learned today.
  • 2:58 - 3:00
    There are three important
    things to remember.
  • 3:01 - 3:04
    One, the browser sends
    requests to the server
  • 3:04 - 3:06
    and displays or renders website files.
  • 3:06 - 3:08
    Two, the server stores website files
  • 3:08 - 3:11
    and sends them to the web
    browser upon a request.
  • 3:11 - 3:16
    Three, HTTP, or hypertext transfer
    protocol, is a standardized set of rules
  • 3:16 - 3:19
    for how browsers and servers
    transfer data to one another
Title:
servers browsers vII
Video Language:
English
Duration:
03:26

English subtitles

Revisions