CH 1 Web - Programming
CH 1 Web - Programming
• For example, if you are running a restaurant the dining area is your front
end and the kitchen is your back end. You don’t want everyone to see
what’s going on in the kitchen.
• Nodejs, Python, PHP, etc. are some of the main programming languages
that are used to create the back end of your website.
3. Full-stack Development
• As full-stack developers, you are required to create both the front end and
back end of the website.
Internet provided a medium to publish and access information over the web.
Advantages
Internet covers almost every aspect of life, one can think of. Here, we will discuss some of the advantages of
Internet:
• Internet allows us to communicate with the people sitting at remote locations. There are various apps
available on the wed that uses Internet as a medium for communication. One can find various social
networking sites such as:
• Facebook , Twitter, Yahoo,Google+ etc.
• One can surf for any kind of information over the internet. Information regarding various topics such as
Technology, Health & Science, Social Studies, Geographical Information, Information Technology,
Products etc can be surfed with help of a search engine.
• Apart from communication and source of information, internet also serves a medium for entertainment.
Following are the various modes for entertainment over internet.
• Online Television ,Online Games, Songs, Videos ,Social Networking Apps
• Internet allows us to use many services like:
• Internet Banking , Online Shopping ,Online Ticket Booking , Online Bill Payment
• Data Sharing , E-mail
• Internet provides concept of electronic commerce, that allows the business deals to be conducted on
electronic systems
Disadvantages
However, Internet has proved to be a powerful source of information in almost
every field, yet there exists many disadvantages discussed below:
•There are always chances to loose personal information such as name,
address, credit card number.
Therefore, one should be very careful while sharing such information. One
should use credit cards only through authenticated sites.
The World Wide Web (WWW) is combination of all resources and users on the
Internet that are using the Hypertext Transfer Protocol (HTTP).
A broader definition comes from the World Wide Web Consortium (W3C):
o The internet is, as its name implies, a network -- a vast, global network that
incorporates a multitude of lesser networks.
In contrast, the Web is a communications model that, through HTTP, enables the
exchange of information over the internet.
Tim Berners-Lee is the inventor of the Web and the director of the W3C,
the organization that oversees its development.
In 1989, Berners-Lee began work on the first World Wide Web server at
CERN.
He called the server "httpd(Hypertext Transfer Protocol daemon )” and
dubbed the first client "WWW.”
o The World Wide Web has been widely available since 1991
Client-server architecture
• Client Server Architecture is a computing model in which the server
hosts, delivers and manages most of the resources and services to be
consumed by the client.
• Each of these files including the main page needs a URL to identify each item.
Then each item is sent by the Web server to the Web browser and Web browser
collects all this information and displays them in the form of Web page.
Hypertext Transfer Protocol (HTTP
1.0/HTTP 1.1/secure HTTP)
• HTTP stands for hypertext transfer protocol, and it is the basis for almost
all web applications.
• HTTP is the method computers and servers use to request and send
information.
• For instance, when someone navigates to cloudflare.com on their laptop,
their web browser sends an HTTP request to the Cloudflare servers for the
content that appears on the page.
• Then, Cloudflare servers send HTTP responses with the text, images, and
formatting that the browser displays to the user.
• The first usable version of HTTP was created in 1997.
- Because it went through several stages of development, this first version of HTTP was called
HTTP/1.1.
-This version is still in use on the web.
• In 2015, a new version of HTTP called HTTP/2 was created.
• HTTP/2 solves several problems that the creators of HTTP/1.1 did not anticipate.
• HTTP/2 achieves faster webpage loading without performance optimizations that require extensive
human efforts in terms of development.
• It significantly reduces the complexities that had crept into HTTP/1.1 and gives us a robust protocol
which, though not without its flaws, will perhaps stand the test of time.
What is HTTPS?
• Hypertext transfer protocol secure (HTTPS) is the secure version of HTTP,
which is the primary protocol used to send data between a web browser and a
website.
• HTTPS is encrypted in order to increase security of data transfer.
• This is particularly important when users transmit sensitive data, such as by
logging into a bank account, email service, or health insurance provider.
• Any website, especially those that require login credentials, should use HTTPS.
• In modern web browsers such as Chrome, websites that do not use HTTPS are
marked differently than those that are.
• Look for a green padlock in the URL bar to signify the webpage is secure.
• Web browsers take HTTPS seriously;
Google Chrome and other browsers flag all non-HTTPS websites as not secure.
Other Web protocols (FTP, SMTP…)
FTP
• FTP stands for File Transfer Protocol.
• It is used to send/receive file from the remote computer.
• It is defined in RFC959.
• FTP establishes two connections between client system and server system, one for control
information and the other for data to be transferred.
• Control information carry commands/response.
• Authentication need to be done initially by way of validating username and password.
• Once it is done files can be transferred between two systems.
• FTP handles both binary and text format files.
SMTP stands for Simple Mail Transfer Protocol.
• SMTP provides a protocol for two computers to exchange electronic mail
using a TCP connection.