Chapter One IP
Chapter One IP
Conti…
• Internet is a large number of computers connected
together to share information.
• It is a network of networks that consists of millions of
private, public, academic, business, and government
networks, of local to global scope, that are linked
together.
• Internet, as a “network of networks”, consists of many
computers, called servers or hosts, which are linked by
communication lines
Conti…
• important thing that has contributed to the growth of
Internet is ownership. Until recently, nobody owns the
Internet.
• The reason, although the Internet was made in the
U.S.A., its unique design transformed it into a source for
innovation that anyone in the world could use.
• Thought the Internet is not owned by anyone, its
backbone: servers and Internet Service Providers (ISP)
are owned by private as well government organizations
Conti…
• the functionalities of the Internet in many business areas is manifested through its
services listed below:
• the Web server returns the document in the form of an HTML data
stream preceded by a few descriptive headers.
The World Wide Web (known affectionately as “the Web”) is just one of
the ways information can be shared over the Internet.
There are many server software options out there, but the two most
popular are Apache and Microsoft Internet Information Services
(IIS).
The browser is the client software that makes requests for documents.
Frontend versus Backend
• HTML
• CSS
• JavaScript
• VBScript
Conti…
• Front End Frameworks and
Libraries
• AngularJS
• React.js
• Bootstrap
• jQuery
• SASS
Conti…
• Backend refers to the programs and scripts that work on
the server behind the scenes to make web pages dynamic
and interactive.
• In general, backend web development falls in the hands
of experienced programmers.
• The following tasks take place on the backend:
Information design as it pertains to how the information is
organized on the server, Forms processing,
• Database programming, Other server-side web
applications using PHP, JSP, Java and other programming
languages
Conti…
• Server-side programming must deal with dynamic content. Most web
pages are not static since they deal with searching databases.
• Server-side Uses
• It processes the user input
• Displays the requested pages
• Interaction with servers/storages
• Interaction with databases
• Querying the database
• Encoding of data into HTML
• Operations over databases like delete, update.
Conti…
Types of web pages (static vs. dynamic)
• Websites that only use HTML and CSS are called static
websites.
• Websites with scripting are called dynamic websites.
• When thinking about making your website, it’s
important to identify which type of site you want
A Static Website
A static website is the simplest kind of website you can build.
If you intend your website to be small (3 pages or less), then a static website might be the easiest
way to go.
But if you want to share elements between pages (such as logos or menus), you’ll have to
duplicate the HTML on each page.
Static websites are easier to make than dynamic websites because they require less coding and
technical knowledge.
However, fully static websites are very uncommon these days, since there is so much that
scripting can do.
A Dynamic Website
A dynamic website is a website that not only uses HTML and CSS, but
includes website scripting as well.
The main reasons why you’d want to use website scripting on your
site is you want an interactive web app that people can use, not just
read and you want to be able to share HTML code between your
pages.
This website also shares the same HTML code for the header, menu
and sidebar between all pages of the site.
Continue…
A server side or back-end language runs its scripts before the HTML is
loaded, not after.
There are a range of server-side languages in use on the web today. PHP
is one of the most popular, as well as ASP.NET and many others.
They are called server-side languages because their scripts are run not
on your computer,
but on the server which hosts the website and sends down the HTML
code.
Conti…
How the Web Works?
A client application, such as a web browser, opens a socket to the web server’s
HTTP port (80 by default).
Through the connection, the client writes an ASCII text request line
The web server parses the request and locates the specified resources.
The server writes a copy of the resource to the socket, where it’s read by the
client.
III. HTTP version: Indicates the highest level of the HTTP specification the
client-application understands. Some allowable values are: HTTP/1.0 or
HTTP/1.1
Request method:
HEAD: -Same as GET, but returns only the status line and headers and not
return a message-body in the response.
Conti…
• URI stands for Uniform Resource Identifier, which is used
to identify resource on the web.
• A URI identifies a resource either by location, or a name,
or both. URIs can be classified as Uniform Resource
Locators (URLs), as Uniform Resource names (URNs), or as
both.
• A uniform resource name (URN) functions like a person's
name, while a uniform resource locator (URL) resembles
that person's street address.
• In other words, the URN defines an item's identity, while
the URL provides a method to find it.
Conti…
• A common URL is composed by four parts:
The protocol: this specifies which protocol is used to access
the document. It is also called URL scheme.
The computer name: Gives the name of the computer, usually
a domain name or IP address, where the content is hosted.
The directories path: Sequence of directories separated by
slashes that define the path to follow to reach the document.
The file name: The name of the file containing the resource.
Conti…
For example,
http://www.htmlquick.com/reference/tags/span.html
Protocol: http://
Computer name (domain name): www.htmlquick.com
• A.1.The HTTP version: the server indicates its capability in terms of HTTP version it
supports.
• A.2. Response Code: a 3-digit numeric code that indicates whether the request succeeded or
failed and, if it failed, the reason why.
1xx- informational, indicating that the client should respond with some other action.
2xx- successful, in the 200s signify that the request was successful.
3xx- redirection, Values in the 300s are used for files that have moved and usually include a
Location header indicating the new address.
4xx- client error, Values in the 400s indicate an error by the client.
5xx- server error, Codes in the 500s signify an error by the server.
End Chapter 1
Thanks!