Fundamentals of WEB Programming

Slides:



Advertisements
Similar presentations
3.02H Publishing a Website 3.02 Develop webpages..
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
The Internet Useful Definitions and Concepts About the Internet.
Layer 7- Application Layer
HTML & Dreamweaver 101 Aman Yadav. Definitions HTTP – The Web uses a protocol called HTTP (Hyper Text Transport Protocol) to communicate between the Web.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Creating your website Using Plain HTML. What is HTML? ► Web pages are authored in HyperText Markup Language (HTML) ► Plain text is marked up with tags,
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
Application Layer. Domain Name System Domain Name System (DNS) Problem – Want to go to but don’t know the IP addresswww.google.com Solution.
The Internet & The World Wide Web Notes
Web Client/Server Communication A290/A590, Fall /09/2014.
UNDERSTANDING WEB AND WEB PROJECT PLANNING AND DESIGNING AND EFFECTIVE WEBSITE Garni Dadaian.
Website Publishing. Publishing Basics Early Web Sites Obtain a Domain Name IP Address (Internet Protocol Address) – A number that uniquely identifies.
IT 210 The Internet & World Wide Web introduction.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
Internet Concept and Terminology. The Internet The Internet is the largest computer system in the world. The Internet is often called the Net, the Information.
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
TCP/IP Protocols Dr. Sharon Hall Perkins Applications World Wide Web(HTTP) Presented by.
The Internet. Network - Collection of computers and devices connected together via communications devices Internet - Worldwide collection of networks.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
The Web and Web Services Jim Graham NR 621 Spring 2009.
The Internet Lecture 16 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Web Technologies Lecture 1 The Internet and HTTP.
4343 X2 – Outline The Domain Name System The Web.
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
1 UNIT 13 The World Wide Web. Introduction 2 Agenda The World Wide Web Search Engines Video Streaming 3.
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
Important skills for Computer Based Researching Peter Szluka, Attila Skulteti
CIS 1203 Web Technologies Introduction to the Internet and the WWW.
National College of Science & Information Technology.
4.01 How Web Pages Work.
Introduction to the Internet
4.01 How Web Pages Work.
Web fundamentals: Clients, Servers, and Communication
Understanding Web Server Programming
4.01 How Web Pages Work.
3.02H Publishing a Website 3.02 Develop webpages..
WWW and HTTP King Fahd University of Petroleum & Minerals
Technologies and Applications
CISC103 Web Development Basics: Web site:
OCR Computing for GCSE © Hodder Education 2011
E-commerce | WWW World Wide Web - Concepts
E-commerce | WWW World Wide Web - Concepts
Some bits on how it works
Some Common Terms The Internet is a network of computers spanning the globe. It is also called the World Wide Web. World Wide Web It is a collection of.
Protocols and networks in the TCP/IP model initially.
Web UI Basics ITM 352.
Understanding the internet
Web page a hypertext document connected to the World Wide Web.
Network Services.
CS222 Web Programming Course Outline
CISC103 Web Development Basics: Web site:
Application layer Lecture 7.
Hyper Text Transfer Protocol
4.02 Develop web pages using various layouts and technologies.
World Wide Web Uniform Resource Locator hostname [:port]/path
Important skills for Computer Based Researching
OCR GCSE Computing © Hodder Education 2013 Slide 1
Read this to find out how the internet works!
4.01 How Web Pages Work.
Information Retrieval and Web Design
Computer Networks Protocols
4.01 How Web Pages Work.
Presentation transcript:

Fundamentals of WEB Programming

The Web There is no such protocol, called “WEB”, it is a non-technical expression! HTTP: The protocol used by modern web browsers to access webpages. It is a client-server textual protocol (originally a 7-bit protocol!) that uses host names Client: The computer that initiates the connection Server: The computer that accepts the connection and provides the data

Subdomain/IP assignments A DNS zone file Subdomain/IP assignments

How it works? Internet Home network Root NS Provider Home network facebook.com

How to start? The future owner of facebook.com buys a computer (real or virtual) and subscribes an internet connection The internet connection must be 7/24, unfiltered, with a static IPv4 address (IPv4 exhausted: 2011-2015, only available from ISPs) Then the domain name facebook.com must be registered via a domain registrator (registrar), and must be renewed once in every 1-2-3 years The root servers contain every IP-DNS association. Only dedicated (“country- level”) DNS servers can access the root name servers. Every other computer must use the name server provided by the ISP (Alternative: 8.8.8.8)

DNS resolution Send results (or authority info) Local cache Send results (or authority info) Not in cache Home router Send results (or authority info) Not in cache ISP Not in cache Send results (or authority info) Root / additional DNS

Internet vs. WEB Internet marika.hu zoo.com theater.com school.com receptek.html cats.html allatok.html dogs.html marika.hu zoo.com intro.html math.html Internet faq.html arts.html theater.com school.com

WEB: The documents spreaded all over the world can link to each other Internet vs. WEB WEB: The documents spreaded all over the world can link to each other receptek.html cats.html allatok.html dogs.html marika.hu zoo.com intro.html math.html Internet faq.html arts.html WEB theater.com school.com

Three standards hirek allas cimlap.html URL (Uniform Resource Locator) http://origo.hu/hirek/belfold.html belfold.html allas http://origo.hu/allas/ajanlatok.html ajanlatok.html http://origo.hu/cimlap.html cimlap.html

Three standards HTML (Hyper Text Markup Language) Document formatter standard Extensible with other document parts (e.g. styles=CSS, scripts=JS) <table border = "1"> <tr> <th>I. hely</th> <th>II. hely</th> <th>III. hely</th> </tr> <td>Béla</td> <td>Gizi</td> <td>Saci</td> </table> eredmeny.html contents Shown in browser

Three standards HTTP (Hyper Text Transfer Protocol)

HTTP Testable from home Execute -> cmd.exe Install telnet: pkgmgr /iu:"TelnetClient„ Establish TCP connection: telnet users.nik.uni-obuda.hu 80 Send command: GET /kovacs.andras/webprog/hello.html HTTP/1.0 Host: users.nik.uni-obuda.hu

HTTP GET /kovacs.andras/webprog/hello.html HTTP/1.0 HTTP commands GET method We want the contents of the document URL without hostname Full path, filename with extension Version number 1.0 or 1.1 HTTP/2: published in the end of 2015 13.7% supported in May 2017

HTTP HTTP methods Method Description HEAD GET POST PUT DELETE Get only the HTTP headers GET Get the whole document POST Send data to server (form data, can encode files too) PUT Send file to the server (Historically. Now: REST API) DELETE Remove file from the server (Historically. Now: REST API)

HTTP HTTP is a stateless protocol – no built-in session management By default, every request is connection:close Even when using connection pooling, two requests cannot be paired Solution: cookies/sessions Local vs server-side storage

Cookies OE NIK PHP/Symfony

Session OE NIK PHP/Symfony