CS 241 Section (04/19/12). MP8  Web Server  Due: Tuesday, May 1 st, 11:59pm  What will you be doing?  Creating a web-server in C that serves HTML.

Slides:



Advertisements
Similar presentations
The Client-Server Model for the Web 1. A Web Client (usually in the form of a web browser) makes an HTTP request to a specific web server. 2. The Web Server.
Advertisements

COEN 445 Communication Networks and Protocols Lab 4
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Layer 7- Application Layer
Master’s course Bioinformatics Data Analysis and Tools Lecture 6: Internet Basics Centre for Integrative Bioinformatics.
Programming project #4 1 CS502 Spring 2006 Programming Project #4 Web Server CS-502 Operating Systems Spring 2006.
Programming Project #3CS-4513, D-Term Programming Project #3 Simple Web Server CS-4513 D-Term 2007 (Slides include materials from Operating System.
Multiple Tiers in Action
Introduction to Web Pages. Slide 2 Lecture Overview Evolution of the Internet and Web Web Protocols.
1 Software Testing and Quality Assurance Lecture 32 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
CS-3103 & CS-502, Summer 2006 Programming Project #31 Programming Project #3 Web Server CS-3103 & CS-502 Operating Systems.
Lectures and Practicals Mon 8-10 SC1222 TUE SC1222 Office: SC Website: mis.csit.sci.tsu.ac.th/kanida.
Web application architecture
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.
1 John Magee 11 July 2013 CS 101 Lecture 11: How do you “visit” a web page, revisted Slides adapted from Kurose and Ross, Computer Networking 5/e Source.
Chapter 18 Networking F Client/Server Communications F Simple Client/Server Applications F Serve Multiple Clients F Create Applet Clients F Send and Retrieve.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface
CS 241 Section Week #12 (04/30/09). Announcements TA Final review: -Either Tuesday May 12, Or Wednesday May 13, 2009 (2:00pm - 4:00pm) || (6:30pm.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 1 Key Concepts 1.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
The Web and Web Services Jim Graham NR 621 Spring 2009.
CS1001 Lecture 9. Overview Security Security HTML HTML.
Chapter 16: Networking F Client/Server Communications F Serving Multiple Clients F Applet Clients F Viewing HTML Pages F Retrieving Files from Web Servers.
Networking Components 10/2/07. Parts of a Network Clients –Computers that request or order information from a server –Usually desktop computers with their.

Web application architecture1 Based on Jim Conallen: Web Applications with UML.
Client/Server Socket Programming Project
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 5.
Socket Programming.
Introduction to Web & HTML
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
The Internet What is the Internet? The Internet is a lot of computers over the whole world connected together so that they can share information. It.
COMP2322 Lab 4 Socket Programming Toby Lam March 2, 2016.
Ch 2. Application Layer Myungchul Kim
World Wide Web 16 World Wide Web 16. World Wide Web 16 Everyone also talks about the Web But people don’t really understand how it works You need to know.
Website Design and Construction Services and Standards.
CLIENT (Browser) socket accept C1 C2 recv C2 recv send C2 send end_thread recv C3 send bind connect Web Server Proxy recv close C3 close C2 end_thread.
Network Programming. These days almost all devices.
Web page – Html –base file – Objects (first DNS) First get html file Then browser reads the html and gets the objects.
Sockets Intro to Network Programming. Before the internet... Early computers were entirely isolated No Internet No network No model No external communications.
Web Page Design The Basics. The Web Page A document (file) created using the HTML scripting language. A document (file) created using the HTML scripting.
Computer Basics Introduction CIS 109 Columbia College.
Communication protocols 2. HTTP Hypertext Transfer Protocol, is the protocol of World Wide Web (www) Client web browser Web server Request files Respond.
COMP2322 Lab 4 Socket Programming
Lecture 5 Blocking practices
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Networking CS 3470, Section 1 Sarah Diesburg
Some bits on how it works
Chapter 18 Networking Client/Server Communications
Socket Programming Cal Poly Pomona Young CS380.
CS 142 Lecture Notes: Network Security
The Transport Layer Socket Programming
CS 142 Lecture Notes: Network Security
شبکه های کامپیوتری پیشرفته
IS 4506 Server Configuration (HTTP Server)
Chapter 16 Socket Interface.
Starting TCP Connection – A High Level View
When you connect with DHCP, you are assigned a
CS 142 Lecture Notes: Securing the Connection
Hyper Text Transfer Protocol
CS 142 Lecture Notes: Network Security
Lecture 1 Kanida Sinmai
Information Retrieval and Web Design
Information Retrieval and Web Design
Computer Networks Protocols
IS 4506 Configuring the FTP Service
Presentation transcript:

CS 241 Section (04/19/12)

MP8  Web Server  Due: Tuesday, May 1 st, 11:59pm  What will you be doing?  Creating a web-server in C that serves HTML pages and a few types of files found on the web.  You won’t test your program using a console!  To test: you’ll open up a web browser (such as Firefox, Chrome, IE, it doesn’t matter) and connect to your program.  You can also use wget to debug if IE / Firefox not working:  wget –d

MP8  MP8 has you create a web server.  In today’s programming example, we’ll create a web server that gets an HTTP request and prints that to the console.  Preliminary step for your MP 8.

Discussion Section Coding

Network Choices  In main lecture, you have seen two different protocols:  TCP  UDP …what are the differences? …which one do we want to use for a web client?

Network Choices  In main lecture, you have seen two different roles:  Server:  socket()  bind()  listen()  accept()  Client:  gethostbyname() / getaddinfo()  socket()  connect()

Programming!  In the ds/ds11/ directory, you’ll find 1.c.  Goal:  Create a program to read HTTP request from a client and print that out.