SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
Introduction to the World Wide Web
                      1
By: Abdalla Mahmoud .



Contents
            Introduction to the World Wide Web................................................... 1
              Contents ........................................................................................... 1
              1. Introduction ................................................................................... 3
              2. HTTP............................................................................................. 3
                2.1. HTTP Request ........................................................................... 4
                2.2. HTTP Response ......................................................................... 4
                2.3. HTTP Session............................................................................ 4
              3. HTML ............................................................................................ 5
              4. Web Server.................................................................................... 5
              5. Web Browser.................................................................................. 5
              6. The Dark Age ................................................................................. 5
              7. The Dynamic Age............................................................................ 5
              8. Examples....................................................................................... 6
                8.1. HTML Skeleton.......................................................................... 6
                8.2. HTML Registration Form ............................................................. 6
                8.3. HTTP Request ........................................................................... 7
                8.4. HTTP Response ......................................................................... 7
                8.5. Dynamic Page (JSP) .................................................................. 7
                  8.5.1. JSP Page ............................................................................ 7
                  8.5.2. Resulting HTML Document .................................................... 8




1. http://www.abdallamahmoud.com.



                                                      1
2
1. Introduction
   The World Wide Web, or WWW in short, is a system of documents accessed via the internet
using standard protocols. The web should not be confused with the internet. The web is
described in the terms of protocols and document specifications maintained by the World
                               2
Wide Web consortium, or W3C in short. Those protocols and documents are clouded on the
internet. In other words, the web is a part of the internet.


2. HTTP
   Hypertext Transfer Protocol, or HTTP in short, is an application level protocol for distributed
hypermedia (text, image, video, etc) information systems, developed by the W3C. The main
purpose of HTTP is to retrieve inter-linked hypertext documents from the internet. A common
example is every day passing time on facebook. You do retrieve different types of media from
the facebook website using the HTTP protocol that's familiar to both, the web server hosting
the facebook website, and the web browser you use to access facebook website.




Some facts about HTTP:

     • HTTP works in client/server architecture.
     • The client is the web browser.
     • The server is the web server.
     • The client is referred to as the user agent.
     • The server is referred to the origin server.
     • HTTP is request/response protocol, i.e. user agent requests, origin server responses,
       connection is closed.
     • One consequence of the previous fact is that HTTP is a stateless protocol, i.e. no state
       is shared between different requests.




2. W3C, founded and headed by Sir Tim Berners-Lee, credited the father of the web. See
http://www.w3c.org/.



                                                3
2.1. HTTP Request

An HTTP request is sent by the user agent to a web origin after establishing a connection with
it. The purpose of an HTTP request is to retrieve some resource. The request consists of:
       Request Line: the method of retrieving the resource in addition to the path to this
       resource. Popular methods are GET and POST.


               GET Method: parameters can be passed to resources in the URL.
               POST Method: parameters can be passed to resources also, but the in the
               body of the request.


       Request Headers: a set of key-value attributes giving some metadata about the
       request.


2.2. HTTP Response

An HTTP response is sent by the web origin to the user agent before closing the connection
with it. The purpose of HTTP response is to reply to the user request with either the resource
or some other replies with failure or security insufficiencies. The response consists of:
       Response Line: Status code (informing reply message) in addition to a textual
       message.

       Response Headers: a set of key-value attributes giving some metadata about the
       response.

       Resource content: the content of the requested resource.



2.3. HTTP Session

Because HTTP is a stateless protocols, stateful applications of user logins and online shop-
cards cannot be directly implemented using HTTP. That's because those type of applications
needs to remember state among a sequence of requests. To meet this requirement, the
concept of HTTP session was introduced.

An HTTP session is a set of HTTP requests. The main purpose of a session is to remember
state about the client among those requests. This supports all types of applications that
needs to make a conversation with the client. An HTTP session is supported by browser-
cookies. A browser-cookie is some state that can be stored by the origin server on the
user agent and retrieved on later requests. It lets the server remembers some state about
a sequence of requests for a specific client. In other words, browser-cookies are variables
inside the browser accessed by some origin server. Browser-cookies have expiration-dates
that determines the timeout of the HTTP session.




                                              4
3. HTML
   Hypertext Markup Language, or HTML in short, is a standard language for representing
structural documents of different types of media (text, image, video, etc), developed by the
W3C. The main purpose of HTML is to describe the hierarchical structure of a hypermedia
page that needs to be rendered using some type of applications called web browsers.

Some facts about HTML:

     • HTML is a representational language, not a programming language.
     • HTML is rendered using a web browser.
     • HTML does not do actions. However, scripts of actions can be embedded in some
       client-side scripting language such as javascript.


4. Web Server
   A web server is an application that supports hypermedia distribution over the internet. It
implements the HTTP protocol and manages different media resources to provide it to users
on request. The most popular web server is Apache Web Server. It's open source and can be
downloaded from (http://www.apache.org).


5. Web Browser
   A web browser is an application that used to access and view hypermedia resources
managed by some web server using HTTP protocol. It requests resource documents from
a web server and render those documents to the viewer. Most popular web browsers are
Microsoft Internet Explorer and Mozilla Firefox.


6. The Dark Age
   Not too long ago, websites was just static HTML pages linked together with no activity with
the user. The user is allowed only to view static resources, lazily manually updated by the
website administrator. The web was no more just static resources. This feature changed a lot
as today websites gradually tended to be web applications.


7. The Dynamic Age
    Today, most websites are interactive. Users can interact with websites in forms of
comments, edits, shares, uploads, etc. For example, the content of the facebook homepage
is dynamically changeed every time you visit it as it fetches latest posts by all of your friends.
Those types of resources cannot be built in static HTML pages and needs server-side scripting
technologies like PHP, ASP, or Servlets and JSP as we will be involved in Java EE.




                                                5
8. Examples

8.1. HTML Skeleton

file: skeleton.html
<html>

     <!-- This is the header section, not displayed on screen -->
     <head>
          <title>Page Title Here</title>
     </head>

     <!-- This is the body section, displayed on screen -->
     <body>
          <h1>Topic</h1>
          Content
     </body>

</html>


8.2. HTML Registration Form

file: registration.html
<html>

     <head>
          <title>HiQ Training</title>
     </head>

     <body>

           <h1>Student Registration Form</h1>

           <!-- This is the form section -->
           <form action="process.jsp" method="POST">

               Student Name:<input type="textfield" name="student_name"/>
               Training Course:<input type="textfield"
name="training_course"/>
               <input type="submit" value="Register"/>

           </form>

     </body>




                                        6
</html>


8.3. HTTP Request

Internet Explorer <request: http://www.yahoo.com/abc/foo.html>
GET /abc/foo.html HTTP/1.1
Host: www.example.com
User-Agent: MSIE 6.0


8.4. HTTP Response

Web Server <response>
HTTP/1.1 200 OK
Server: Apache
Content-Type: text/html
Content-Length: 31837

<html>

    <!-- Page content goes here -->

</html>


8.5. Dynamic Page (JSP)

8.5.1. JSP Page


file: foo.jsp
<html>

    <head>
        <title>First JSP Page</title>
    </head>

    <body>
        <h1>
                <%
                     int x = 5 ;
                     int y = 7 ;
                     int z = x + y ;
                     out.print(z) ;
            %>
        </h1>
    </body>

</html>




                                        7
8.5.2. Resulting HTML Document


browser: <http://www.example.com/foo.jsp>
<html>

    <head>
        <title>First JSP Page</title>
    </head>

    <body>
        <h1>
            12
        </h1>
    </body>

</html>




                                        8

Contenu connexe

Tendances

distributing over the web
distributing over the webdistributing over the web
distributing over the webNicola Baldi
 
Introduction to web technology
Introduction to web technologyIntroduction to web technology
Introduction to web technologyVARSHAKUMARI49
 
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)nrvalluri
 
01. http basics v27
01. http basics v2701. http basics v27
01. http basics v27Eoin Keary
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...WebStackAcademy
 
How Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishHow Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishNagamurali Reddy
 
[DSBW Spring 2009] Unit 02: Web Technologies (1/2)
[DSBW Spring 2009] Unit 02: Web Technologies (1/2)[DSBW Spring 2009] Unit 02: Web Technologies (1/2)
[DSBW Spring 2009] Unit 02: Web Technologies (1/2)Carles Farré
 
uniform resource locator
uniform resource locatoruniform resource locator
uniform resource locatorrajshreemuthiah
 
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A StudyVijay Prasad Gupta
 

Tendances (14)

distributing over the web
distributing over the webdistributing over the web
distributing over the web
 
Spsl v unit - final
Spsl v unit - finalSpsl v unit - final
Spsl v unit - final
 
Introduction to web technology
Introduction to web technologyIntroduction to web technology
Introduction to web technology
 
Web crawler
Web crawlerWeb crawler
Web crawler
 
How The Web Works
How The Web WorksHow The Web Works
How The Web Works
 
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
 
01. http basics v27
01. http basics v2701. http basics v27
01. http basics v27
 
Web servers
Web serversWeb servers
Web servers
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 
How Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishHow Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul Irish
 
[DSBW Spring 2009] Unit 02: Web Technologies (1/2)
[DSBW Spring 2009] Unit 02: Web Technologies (1/2)[DSBW Spring 2009] Unit 02: Web Technologies (1/2)
[DSBW Spring 2009] Unit 02: Web Technologies (1/2)
 
uniform resource locator
uniform resource locatoruniform resource locator
uniform resource locator
 
Apache error
Apache errorApache error
Apache error
 
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
 

En vedette

Internet and its working (manu)
Internet and its working (manu)Internet and its working (manu)
Internet and its working (manu)Manu Nair
 
How the Internet Works
How the Internet WorksHow the Internet Works
How the Internet Workstfyuser
 
TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...
TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...
TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...The Internet Works
 
Internet, intranet y extranet
Internet, intranet y extranetInternet, intranet y extranet
Internet, intranet y extranetLinda Santos
 
Foedumed: World Wide Web (WWW), 43-16
Foedumed: World Wide Web (WWW), 43-16Foedumed: World Wide Web (WWW), 43-16
Foedumed: World Wide Web (WWW), 43-16Maliha Ghazal
 
Wifi vs wimax
Wifi vs wimax Wifi vs wimax
Wifi vs wimax jagrat123
 
Wifi Vs Wimax By Dr Walter Green
Wifi Vs Wimax By Dr Walter GreenWifi Vs Wimax By Dr Walter Green
Wifi Vs Wimax By Dr Walter GreenEngineers Australia
 
World wide web (www)
World wide web (www)World wide web (www)
World wide web (www)Mishuk Hossan
 
DNS(Domain Name System)
DNS(Domain Name System)DNS(Domain Name System)
DNS(Domain Name System)Vishal Mittal
 
Steps for writing a formal e mail
Steps for writing a formal e mailSteps for writing a formal e mail
Steps for writing a formal e mailIbrahem Abdel Ghany
 
CYBER CRIME( DU PRESENTATION FOR FYUP)
CYBER CRIME( DU PRESENTATION FOR FYUP)CYBER CRIME( DU PRESENTATION FOR FYUP)
CYBER CRIME( DU PRESENTATION FOR FYUP)Siddharth Anand
 
Wimax Vs Wi Fi
Wimax Vs Wi FiWimax Vs Wi Fi
Wimax Vs Wi Fiashwinieee
 
Internet architecture
Internet architectureInternet architecture
Internet architectureNaman Rastogi
 
Voip introduction
Voip introductionVoip introduction
Voip introductiondaksh bhatt
 
What Is A Blog?
What Is A Blog?What Is A Blog?
What Is A Blog?Nan Ross
 

En vedette (20)

Internet and its working (manu)
Internet and its working (manu)Internet and its working (manu)
Internet and its working (manu)
 
How the Internet Works
How the Internet WorksHow the Internet Works
How the Internet Works
 
TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...
TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...
TPD in the UK – The future of vaping discussed by a vape shop owner's perspec...
 
Internet, intranet y extranet
Internet, intranet y extranetInternet, intranet y extranet
Internet, intranet y extranet
 
Foedumed: World Wide Web (WWW), 43-16
Foedumed: World Wide Web (WWW), 43-16Foedumed: World Wide Web (WWW), 43-16
Foedumed: World Wide Web (WWW), 43-16
 
World Wide Web(WWW)
World Wide Web(WWW)World Wide Web(WWW)
World Wide Web(WWW)
 
Internet working
Internet workingInternet working
Internet working
 
Wifi vs wimax
Wifi vs wimax Wifi vs wimax
Wifi vs wimax
 
Wifi Vs Wimax By Dr Walter Green
Wifi Vs Wimax By Dr Walter GreenWifi Vs Wimax By Dr Walter Green
Wifi Vs Wimax By Dr Walter Green
 
World wide web (www)
World wide web (www)World wide web (www)
World wide web (www)
 
DNS(Domain Name System)
DNS(Domain Name System)DNS(Domain Name System)
DNS(Domain Name System)
 
Steps for writing a formal e mail
Steps for writing a formal e mailSteps for writing a formal e mail
Steps for writing a formal e mail
 
ROADSHOW MINISO
ROADSHOW MINISOROADSHOW MINISO
ROADSHOW MINISO
 
CYBER CRIME( DU PRESENTATION FOR FYUP)
CYBER CRIME( DU PRESENTATION FOR FYUP)CYBER CRIME( DU PRESENTATION FOR FYUP)
CYBER CRIME( DU PRESENTATION FOR FYUP)
 
Wimax Vs Wi Fi
Wimax Vs Wi FiWimax Vs Wi Fi
Wimax Vs Wi Fi
 
Isp
IspIsp
Isp
 
World wide web
World wide webWorld wide web
World wide web
 
Internet architecture
Internet architectureInternet architecture
Internet architecture
 
Voip introduction
Voip introductionVoip introduction
Voip introduction
 
What Is A Blog?
What Is A Blog?What Is A Blog?
What Is A Blog?
 

Similaire à Introduction to the World Wide Web

Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfRaghunathan52
 
Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfRaghunathan52
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
PHP Training: Module 1
PHP Training: Module 1PHP Training: Module 1
PHP Training: Module 1hussulinux
 
Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3Syed Ariful Islam Emon
 
Anintroductiontojavawebtechnology 090324184240-phpapp01
Anintroductiontojavawebtechnology 090324184240-phpapp01Anintroductiontojavawebtechnology 090324184240-phpapp01
Anintroductiontojavawebtechnology 090324184240-phpapp01raviIITRoorkee
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web ArchitectureChamnap Chhorn
 
Web programming by Najeeb ullahAzad(1)
Web programming by Najeeb ullahAzad(1)Web programming by Najeeb ullahAzad(1)
Web programming by Najeeb ullahAzad(1)azadmcs
 
report_vendor_connect
report_vendor_connectreport_vendor_connect
report_vendor_connectYash Mittal
 
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMSkoolkampus
 
HTTP 완벽가이드 1장.
HTTP 완벽가이드 1장.HTTP 완벽가이드 1장.
HTTP 완벽가이드 1장.HyeonSeok Choi
 

Similaire à Introduction to the World Wide Web (20)

Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdf
 
Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdf
 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptx
 
Web technology
Web technologyWeb technology
Web technology
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Spider Course Day 1
Spider Course Day 1Spider Course Day 1
Spider Course Day 1
 
PHP Training: Module 1
PHP Training: Module 1PHP Training: Module 1
PHP Training: Module 1
 
Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3
 
Web Programming introduction
Web Programming introductionWeb Programming introduction
Web Programming introduction
 
Anintroductiontojavawebtechnology 090324184240-phpapp01
Anintroductiontojavawebtechnology 090324184240-phpapp01Anintroductiontojavawebtechnology 090324184240-phpapp01
Anintroductiontojavawebtechnology 090324184240-phpapp01
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 
Web engineering
Web engineeringWeb engineering
Web engineering
 
Webbasics
WebbasicsWebbasics
Webbasics
 
Www and http
Www and httpWww and http
Www and http
 
Web programming by Najeeb ullahAzad(1)
Web programming by Najeeb ullahAzad(1)Web programming by Najeeb ullahAzad(1)
Web programming by Najeeb ullahAzad(1)
 
report_vendor_connect
report_vendor_connectreport_vendor_connect
report_vendor_connect
 
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS
 
Web fundamentals - part 1
Web fundamentals - part 1Web fundamentals - part 1
Web fundamentals - part 1
 
HTTP 완벽가이드 1장.
HTTP 완벽가이드 1장.HTTP 완벽가이드 1장.
HTTP 완벽가이드 1장.
 

Plus de Abdalla Mahmoud

Plus de Abdalla Mahmoud (9)

Persistence
PersistencePersistence
Persistence
 
JavaServer Pages
JavaServer PagesJavaServer Pages
JavaServer Pages
 
Java EE Services
Java EE ServicesJava EE Services
Java EE Services
 
Message Driven Beans (6)
Message Driven Beans (6)Message Driven Beans (6)
Message Driven Beans (6)
 
Servlets
ServletsServlets
Servlets
 
Introduction to Java Enterprise Edition
Introduction to Java Enterprise EditionIntroduction to Java Enterprise Edition
Introduction to Java Enterprise Edition
 
Object-Oriented Concepts
Object-Oriented ConceptsObject-Oriented Concepts
Object-Oriented Concepts
 
One-Hour Java Talk
One-Hour Java TalkOne-Hour Java Talk
One-Hour Java Talk
 
Being Professional
Being ProfessionalBeing Professional
Being Professional
 

Dernier

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Introduction to the World Wide Web

  • 1. Introduction to the World Wide Web 1 By: Abdalla Mahmoud . Contents Introduction to the World Wide Web................................................... 1 Contents ........................................................................................... 1 1. Introduction ................................................................................... 3 2. HTTP............................................................................................. 3 2.1. HTTP Request ........................................................................... 4 2.2. HTTP Response ......................................................................... 4 2.3. HTTP Session............................................................................ 4 3. HTML ............................................................................................ 5 4. Web Server.................................................................................... 5 5. Web Browser.................................................................................. 5 6. The Dark Age ................................................................................. 5 7. The Dynamic Age............................................................................ 5 8. Examples....................................................................................... 6 8.1. HTML Skeleton.......................................................................... 6 8.2. HTML Registration Form ............................................................. 6 8.3. HTTP Request ........................................................................... 7 8.4. HTTP Response ......................................................................... 7 8.5. Dynamic Page (JSP) .................................................................. 7 8.5.1. JSP Page ............................................................................ 7 8.5.2. Resulting HTML Document .................................................... 8 1. http://www.abdallamahmoud.com. 1
  • 2. 2
  • 3. 1. Introduction The World Wide Web, or WWW in short, is a system of documents accessed via the internet using standard protocols. The web should not be confused with the internet. The web is described in the terms of protocols and document specifications maintained by the World 2 Wide Web consortium, or W3C in short. Those protocols and documents are clouded on the internet. In other words, the web is a part of the internet. 2. HTTP Hypertext Transfer Protocol, or HTTP in short, is an application level protocol for distributed hypermedia (text, image, video, etc) information systems, developed by the W3C. The main purpose of HTTP is to retrieve inter-linked hypertext documents from the internet. A common example is every day passing time on facebook. You do retrieve different types of media from the facebook website using the HTTP protocol that's familiar to both, the web server hosting the facebook website, and the web browser you use to access facebook website. Some facts about HTTP: • HTTP works in client/server architecture. • The client is the web browser. • The server is the web server. • The client is referred to as the user agent. • The server is referred to the origin server. • HTTP is request/response protocol, i.e. user agent requests, origin server responses, connection is closed. • One consequence of the previous fact is that HTTP is a stateless protocol, i.e. no state is shared between different requests. 2. W3C, founded and headed by Sir Tim Berners-Lee, credited the father of the web. See http://www.w3c.org/. 3
  • 4. 2.1. HTTP Request An HTTP request is sent by the user agent to a web origin after establishing a connection with it. The purpose of an HTTP request is to retrieve some resource. The request consists of: Request Line: the method of retrieving the resource in addition to the path to this resource. Popular methods are GET and POST. GET Method: parameters can be passed to resources in the URL. POST Method: parameters can be passed to resources also, but the in the body of the request. Request Headers: a set of key-value attributes giving some metadata about the request. 2.2. HTTP Response An HTTP response is sent by the web origin to the user agent before closing the connection with it. The purpose of HTTP response is to reply to the user request with either the resource or some other replies with failure or security insufficiencies. The response consists of: Response Line: Status code (informing reply message) in addition to a textual message. Response Headers: a set of key-value attributes giving some metadata about the response. Resource content: the content of the requested resource. 2.3. HTTP Session Because HTTP is a stateless protocols, stateful applications of user logins and online shop- cards cannot be directly implemented using HTTP. That's because those type of applications needs to remember state among a sequence of requests. To meet this requirement, the concept of HTTP session was introduced. An HTTP session is a set of HTTP requests. The main purpose of a session is to remember state about the client among those requests. This supports all types of applications that needs to make a conversation with the client. An HTTP session is supported by browser- cookies. A browser-cookie is some state that can be stored by the origin server on the user agent and retrieved on later requests. It lets the server remembers some state about a sequence of requests for a specific client. In other words, browser-cookies are variables inside the browser accessed by some origin server. Browser-cookies have expiration-dates that determines the timeout of the HTTP session. 4
  • 5. 3. HTML Hypertext Markup Language, or HTML in short, is a standard language for representing structural documents of different types of media (text, image, video, etc), developed by the W3C. The main purpose of HTML is to describe the hierarchical structure of a hypermedia page that needs to be rendered using some type of applications called web browsers. Some facts about HTML: • HTML is a representational language, not a programming language. • HTML is rendered using a web browser. • HTML does not do actions. However, scripts of actions can be embedded in some client-side scripting language such as javascript. 4. Web Server A web server is an application that supports hypermedia distribution over the internet. It implements the HTTP protocol and manages different media resources to provide it to users on request. The most popular web server is Apache Web Server. It's open source and can be downloaded from (http://www.apache.org). 5. Web Browser A web browser is an application that used to access and view hypermedia resources managed by some web server using HTTP protocol. It requests resource documents from a web server and render those documents to the viewer. Most popular web browsers are Microsoft Internet Explorer and Mozilla Firefox. 6. The Dark Age Not too long ago, websites was just static HTML pages linked together with no activity with the user. The user is allowed only to view static resources, lazily manually updated by the website administrator. The web was no more just static resources. This feature changed a lot as today websites gradually tended to be web applications. 7. The Dynamic Age Today, most websites are interactive. Users can interact with websites in forms of comments, edits, shares, uploads, etc. For example, the content of the facebook homepage is dynamically changeed every time you visit it as it fetches latest posts by all of your friends. Those types of resources cannot be built in static HTML pages and needs server-side scripting technologies like PHP, ASP, or Servlets and JSP as we will be involved in Java EE. 5
  • 6. 8. Examples 8.1. HTML Skeleton file: skeleton.html <html> <!-- This is the header section, not displayed on screen --> <head> <title>Page Title Here</title> </head> <!-- This is the body section, displayed on screen --> <body> <h1>Topic</h1> Content </body> </html> 8.2. HTML Registration Form file: registration.html <html> <head> <title>HiQ Training</title> </head> <body> <h1>Student Registration Form</h1> <!-- This is the form section --> <form action="process.jsp" method="POST"> Student Name:<input type="textfield" name="student_name"/> Training Course:<input type="textfield" name="training_course"/> <input type="submit" value="Register"/> </form> </body> 6
  • 7. </html> 8.3. HTTP Request Internet Explorer <request: http://www.yahoo.com/abc/foo.html> GET /abc/foo.html HTTP/1.1 Host: www.example.com User-Agent: MSIE 6.0 8.4. HTTP Response Web Server <response> HTTP/1.1 200 OK Server: Apache Content-Type: text/html Content-Length: 31837 <html> <!-- Page content goes here --> </html> 8.5. Dynamic Page (JSP) 8.5.1. JSP Page file: foo.jsp <html> <head> <title>First JSP Page</title> </head> <body> <h1> <% int x = 5 ; int y = 7 ; int z = x + y ; out.print(z) ; %> </h1> </body> </html> 7
  • 8. 8.5.2. Resulting HTML Document browser: <http://www.example.com/foo.jsp> <html> <head> <title>First JSP Page</title> </head> <body> <h1> 12 </h1> </body> </html> 8