PYTHON I HTTP, PYTHON I HTML

Slides:



Advertisements
Similar presentations
Hypertext Transfer PROTOCOL ----HTTP Sen Wang CSE5232 Network Programming.
Advertisements

HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Web basics HTTP – – URI/L/Ns – HTML –
HTTP By: Becky Fultz, Joe Flager, Katie Huston, Tom Packard, Allison Wilsey.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
DNS – HTTP – DHTML - CSS ICW Lecture 5 Hasan Qunoo.
HTTP Hypertext Transfer Protocol. HTTP messages HTTP is the language that web clients and web servers use to talk to each other –HTTP is largely “under.
Hypertext Transfer Protocol Information Systems 337 Prof. Harry Plantinga.
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,
Hypertext Transport Protocol CS Dick Steflik.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
HyperText Transfer Protocol (HTTP).  HTTP is the protocol that supports communication between web browsers and web servers.  A “Web Server” is a HTTP.
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.
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
PACKET ANALYSIS WITH WIRESHARK DHCP, DNS, HTTP Chanhyun park.
Tools for Web Applications. Overview of TCP/IP Link Layer Network Layer Transport Layer Application Layer.
The HyperText Transfer Protocol. History HTTP has been in use since 1990 (HTTP/0.9) HTTP/1.0 was defined in RFC 1945 (May 1996) and included metainformation.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Web Client-Server Server Client Hypertext link TCP port 80.
CS 6401 The World Wide Web Outline Background Structure Protocols.
Appendix E: Overview of HTTP ©SoftMoore ConsultingSlide 1.
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.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
The Basics of HTTP Jason Dean
Web Technologies Lecture 1 The Internet and HTTP.
CS 6401 The World Wide Web Outline Background Structure Protocols.
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
COMP2322 Lab 2 HTTP Steven Lee Jan. 29, HTTP Hypertext Transfer Protocol Web’s application layer protocol Client/server model – Client (browser):
HyperText Transfer Protocol (HTTP) Deepti Kulkarni CISC 856: TCP/IP and Upper Layer Protocols Fall 2008 Acknowledgements Professor Amer Richi Gupta.
Lecture # 1 By: Aftab Alam Department Of Computer Science University Of Peshawar Internet Programming.
What’s Really Happening
National College of Science & Information Technology.
World Wide Web – History, Architecture, Protocols Architecture of Web Information Systems Acks to McCracken Syracuse Univ. CS 431 Carl Lagoze – Spring.
Hypertext Transfer Protocol (HTTP)
Hypertext Transfer Protocol
How HTTP Works Made by Manish Kushwaha.
Content from Python Docs.
HTTP – An overview.
Hypertext Transfer Protocol
The Hypertext Transfer Protocol
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
Hypertext Transfer Protocol
Hypertext Transport Protocol
3.0 HTML-CSS WORKSHOP PRESENTATION FOR STUDENTS IN 4º DEGREE OF COMPULSORY SECONDARY EDUCATION.
The World Wide Web Outline Background Structure Protocols CS 640.
Introduction Web Environments
HTTP Protocol.
CIS 5.2, Spring 2010 Word and the WWW
Kviz By Ime I prezime.
4.1 Vizualni (grafički) HTML uređivači
CISC103 Web Development Basics: Web site:
WEB API.
Mrežni protokoli.
Maja Meško Anamarija Plašćak Gordana Pavlović Vedrana Verić
Izrada web-stranica.
HTTP Request Method URL Protocol Version GET /index.html HTTP/1.1
WORDPRESS.
Do While ... Loop struktura
Hypertext Transfer Protocol
Hyper Text Transfer Protocol
Programiranje - Naredbe za kontrolu toka programa – 3. dio
EE 122: HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol (HTTP)
HTTP Hypertext Transfer Protocol
Information Retrieval and Web Design
PROFIL INTERNET Internet.
CS/COE 1520 Jarrett Billingsley
Presentation transcript:

PYTHON I HTTP, PYTHON I HTML Željka Salinger Bojan Ugrica Dino Vučemilović - Šimunović

HTTP i njegov nastanak HTTP (Hypertext Transfer Protocol) – mrežni protokol; osnova razmjene podataka na Internetu IETF i RFC Tim Berners – Lee HTTP/1.1

tehničke karakteristike HTTP-a request/response protokol klijent – web pretraživač server – web stranica URI URL

proces razmjene podataka klijent pokreće zahtjev uspostavljanjem TCP konekcije HTTP server osluškuje na određenom portu po primitku zahtjeva, server šalje odgovor

GET /images/logo.png HTTP/1.1 zahtjev klijenta linija zahtjeva GET /images/logo.png HTTP/1.1 zaglavlje Accept-Language: en prazna linija proizvoljno tijelo poruke

HTTP metode HEAD TRACE GET OPTIONS POST CONNECT PUT PATCH DELETE ovdje sam stavila animacije samo da ti pokazem kak sam to zamislila s ovom slikom, valjda ce raditi... ako ne, samo ce se slika pojaviti prva,s ve ostalo ce biti ok

primjer razgovora zahtjev klijenta odgovor servera

sigurna komunikacija http URI shema – glavna metoda uspostavljanja sigurne komunikacije koristi sloj enkripcije SSL/TLS HTTP/1.1 Upgrade header

Anatomija URL-a http://www.index.hr Prvo se prepoznaje protokol: http Pribavljanje IP adrese hosta www.jutarnji.hr Otvarivanje TCP veze s IP adresom na standardnom portu 80 Potražnja za izvornim dokumentom koji “živi” na toj stranici

Važnost kodiranja % prilikom pisanja URL-a: http://www.index.hr/indexrotator/items/4367/kucni%20ljubimci.jpg Važnost kodiranja % prilikom pisanja URL-a: kucni%2Fljubimci%2Fmacke kucni%2Fljubimci/macke kucni/ljubimci/macke

Metoda GET u Pythonu Kodovi i Greške

Statusni Kodovi: 200 OK 301 Moved Permanently 303 See Other 304 Not Modified 404 Not Found 500 Initial Server Error 503 Service Unavailable

preusmjeravanja korisnost i postojanost

HTML HTML – programski jezik za kreiranje dokumenata na WWW-u stvaranje hipertekstualnih datoteka za pregled treba interpreter povijest HTML-a počinje krajem 20. stoljeća

pisanje HTML koda tagovi – “case insensitive” pišu se unutar oznaka < > početni i završni tag zaglavlje (head) i tijelo (body)

struktura dokumenta <HTML> <HEAD> <TITLE> ovdje stavimo naslov naše stranice</TITLE> </HEAD> <BODY> <P> ovdje stavimo tekst koji želimo da bude vidljiv na stranici </BODY> </HTML> ovdje su namjerno ovako stavljene boje pa to pliz nemoj dirati

Primjer jednostavnog html koda:

Primjer dohvacanja HTML koda u pythonu:

literatura B. Rhodes, J. Goerzen, Foundations od Python Network Programming, Apress, 2010. http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol www.w3.org ools.ietf.org http://www.portalalfa.com http://www.boddie.org.uk http://web.zpr.fer.hr