1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.

Slides:



Advertisements
Similar presentations
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
Advertisements

Browsers and Servers CGI Processing Model ( Common Gateway Interface ) © Norman White, 2013.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
IST 535 Week 1 Class Orientation / Review of Web Basics.
Layer 7- Application Layer
Master’s course Bioinformatics Data Analysis and Tools Lecture 6: Internet Basics Centre for Integrative Bioinformatics.
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
CIS101 Introduction to Computing
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
1 Static Web Pages Websites on Servers (The Big Picture) –Apache Tomcat can support static web pages –Primarily intended to support servlets and JSP –Some.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
1 Software Testing and Quality Assurance Lecture 32 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
Web Client/Server Communication A290/A590, Fall /09/2014.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Web server and web browser It’s a take and give policy in between client and server through HTTP(Hyper Text Transport Protocol) Server takes a request.
Why Worry About the WWW? Intranets -- with lots of HR applications »policies/procedures »job postings »benefits & other transactions »hiring & other workflows.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
INTRODUCTION TO WEB DATABASE PROGRAMMING
CS 299 – Web Programming and Design CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang.
J2EE Web Fundamentals Lesson 1 Introduction and Overview
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
With your friendly Web Developer, Chris.. Terminology  HTML - > Hypertext Markup Language  CSS -> Cascading Style Sheet  open tag  close tag  HTTP->Hypertext.
Hypertext Markup Language HTML Hypertext is vaguely defined as interconnecting pieces of information in a non-sequential but usually relational, manner.
Python CGI programming
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
Website Development with PHP and MySQL Saving Data.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
W orld W ide W eb Client/Server design using TCP/IP Incorporates Other Client/Server Systems –ftp –gopher –mail Server runs on port 80, named httpd, exchanges.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Computational Boot Camp HTML Mike Schaffer. 8/23/2002 (MES) HTML What is HTML? HTML stands for HyperText Markup Language HTML is the language for publishing.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
Netprog 2002 CGI Programming1 CGI Programming CLIENT HTTP SERVER CGI Program http request http response setenv(), dup(), fork(), exec(),...
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
Chapter 4 Applets Cop Why Applets? WWW makes huge information available to anyone with web browser. Web server send web pages and images to your.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Website design and structure. A Website is a collection of webpages that are linked together. Webpages contain text, graphics, sound and video clips.
Web programming Part 1: HTML 由 NordriDesign 提供
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Creating Databases applications for the Web: week 2 Basic HTML review, forms HW: Identify unique source for asp, php, Open Source, MySql, Access.
Introduction to HTML C151 Multi-User Operating Systems.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
How Web Servers and The Internet Work The Basic Process.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Computer Basics Introduction CIS 109 Columbia College.
University of Kansas Department of Electrical Engineering and Computer Science Dr. Susan Gauch April 21, 2005 I T T C Introduction to Web Technologies.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
4.01 How Web Pages Work.
CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang
WWW and HTTP King Fahd University of Petroleum & Minerals
CISC103 Web Development Basics: Web site:
CISC103 Web Development Basics: Web site:
Chapter 27 WWW and HTTP.
4.01 How Web Pages Work.
Presentation transcript:

1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations

2 Final Exam –See posted day, time, and location –It will be 1-1/2 hours – not 3 hours Watch your for any late breaking announcements! Review HW7 and HW8 See the posted practice final exam Review Session Next Class

3 Websites on UNIX Systems Many websites are hosted on UNIX Systems My website is supported on our www server in the same way that I will be teaching now Learn a few basic rules and HTML coding and you can have your own website! Warning: For your educational or personal use only – No commercial websites allowed!

4 The Big Picture UNIX System Apache Server Software Browser Software PC/MAC The Internet TCP/IP Software TCP/IP Software File System HTML Files HTTP Protocol

5 Browser Browser interacts with user to get URL Browser converts URL to an IP address Opens a connection to IP address and port 80 Sends an HTTP “request” containing URL Receives HTTP “response” containing HTML Interprets and displays the HTML

6 Web Server Apache server on UNIX system (Typical) –Interacts with browser clients via HTTP –Accesses HTML files on UNIX file system –Standard mapping from URL to path/file name maps tohttp:// ~bobw/public_html/index.html –This home page can have links to other pages

7 HTTP Protocol Application Layer Protocol –Requests –Responses Sent using TCP connections over IP TCP = Transport Control Protocol IP = Internet Protocol

8 To set up your website Use mkdir to create a sub-directory on your home directory named: public_html Edit and save a text file containing HTML document (program) in that directory as: index.html Use chmod to allow “others” read access Remember UNIX is case sensitive!

9 Basic HTML Document Display Title Contents of body defines what the browser displays

10 Hello World HMTL File ~yourname/public_html/index.html Your Name’s Hello World Website Hello world!

11 Proper Nesting of and … … Start/End on one line is OK Start/End on one line is OK

12 Basic HTML Tags Various font/format control pairs Headings Level 1 Paragraph Bold Italics Center Text Some format control tags are not a tag pair: Break (new line)

13 Basic HTML Tags Unordered Lists (Bullets at start of each line) List Item Ordered Lists (Numbers at start of each line) List Item 1 List Item 2

14 Links to Other Files Display a hyper-link to another html file: Display Text Display a link to download a non-html file: Display Text Display an image from a non-html file: (Note: not a tag pair)

15 HTML Forms and/or Get Requests Forms defined using tags Many useful form “widgets”: –Text (Free Format Text Entry) –Check Boxes/Radio Boxes (on or off) –Select (Multiple Choice) Browser submits data to server programs: GET or POST methods Simple “GET” = URL followed by ?request: e.g.: url?parameter1=value1&parameter2=value2

16 HTML Forms and/or Get Requests Webpage reflect.html sends either: –A POST request via submitting the form or –A GET request via the encoded URL Reflect.html form using “post” method: <form name = "reflect" method="post“ action= " Reflect.html encoded “get” URL: <a href=" reflect.cgi?Name=John+Jones&Phone= "> Get Request to reflect.cgi Program URL is:

17 Dynamic Web Pages The URL points to an “executable program” file instead of to a “static” HTML document file The program generates response based on input request parameters and data stored on the server It writes response in HTML format to stdout These programs can be scripts PERL, PHP, etc. or Java servlets (e.g. generated from.jsp files) They can also be compiled C programs!

18 CGI C Programs Compile your C program with executable file name suffix.cgi (e.g. makefile definition) reflect.cgi:reflect.c makefile gcc -o reflect.cgi reflect.c Save executable file in a sub-directory in your public_html directory (e.g. “cgi-bin”)

19 CGI C Programs Environment variable REQUEST_METHOD contains indicator of type of input (Get/Post) reflect.cgi figures out request method used: char *rm = getenv(“REQUEST_METHOD”); For a “Get” request, reflect.cgi uses: char *s = getenv(“QUERY_STRING”); For a “Post” request, reflect.cgi uses: int len = atoi(getenv("CONTENT_LENGTH")); /* and reads len characters via getchar */

20 CGI C Programs reflect.cgi just responds to browser with standard html “boilerplate” and a copy of the input data in the body without parsing it: arguments = 1, /home/bobw/public_html/cgi-bin/reflect.cgi cgiRequestMethod = GET QUERY_STRING: Name=John+Jones&Phone= A production cgi program would parse this input data, process it, and provide a response in html to the browser

21 Course Evaluations Please fill out the course evaluation forms Give to assigned student for turn-in Thank you