Internet and Web Based Technology.
|
|
- Maurice Emory Merritt
- 5 years ago
- Views:
Transcription
1 Internet and Web Based Technology
2 About the Course I will be covering half the course (2 hours / week) Tuesday 9:30 AM 11:25 AM Topics to be covered How Internet works, HTML, HTTP, CGI scripts, PERL, etc. Basic concepts of cryptology Network security protocols, firewall, NAT, etc. Details would be available on the web site. What to expect? Self-study materials will be prescribed all throughout the course, from which questions will be set. Assignments: In groups of two, students will be assigned a Term Paper and a Programming Assignment. Internet & Web Based Technology 2
3 Attendance is mandatory If the cumulative attendance of a student falls below 75%, it will lead to immediate deregistration. Proxy attendance, if detected, will lead to deregistration and subsequent disciplinary actions. Other requirements Satisfactory completion of Term Paper and Assignment is essential, failing which a student will get F grade. Term Paper: A topic will be assigned to a group of two students. A comprehensive study report of pages (11 point, 1.5 spacing) will have to be submitted. Internet & Web Based Technology 3
4 Programming Assignment A non-trivial programming problem will be given to a group. It will have to be implemented and demonstrated. Typical example: Design and implement a web based client that supports attachments. Internet & Web Based Technology 4
5 Introduction
6 Internetworking: Basic Concepts Computer Network a communication system for connecting end-systems (hosts) Local Area Network (LAN) connects hosts within a relatively small geographical area room, building, campus Wide Area Network (WAN) hosts may be widely dispersed across buildings, cities, countries Internet & Web Based Technology 6
7 What is Internet? The network formed by the co-operative interconnection of a large number of computer networks. Network of Networks. No one owns the internet every person who makes a connection owns a slice of the Internet There is no central administration to the Internet Internet & Web Based Technology 7
8 Network Network Network BACKBONE Network Network Network Internet & Web Based Technology 8
9 What is it actually? A community of people who use and develop the networks. A collection of resources that can be reached from those networks. A setup to facilitate collaboration among members of the research and educational communities, world-wide. The connected networks use the TCP/IP protocol. Internet & Web Based Technology 9
10 Growth of Internet Internet & Web Based Technology 10
11 Internet & Web Based Technology 11
12 Internet & Web Based Technology 12
13 Internet & Web Based Technology 13
14 How Data Flows? Packet Switching Internet uses TCP/IP protocol. TCP/IP uses packet switching. A message is broken down into smaller packets. A packet is a self-contained bundle of data sent over the network. Generally less than 1500 bytes long. Each packet contains Address of origin Address of destination Internet & Web Based Technology 14
15 Packet MESSAGE Packets HEADER DATA Internet & Web Based Technology 15
16 World Wide Web (WWW) WWW is an Internet organizer. Developed in the 1980 s by the NSF. Internet browsers (Mosaic, Netscape, Internet Explorer, etc.) developed to make use of WWW easier. Based on client-server technology. The server is a computer (hardware and software) providing access to the data. The client is the software that allows users to access the data. Internet & Web Based Technology 16
17 The Inside Story Interconnected web of documents. Billions of them around. Where do the documents reside? On web (http) servers. http stands for Hyper Text Transport Protocol They are written in html, typically html stands for Hyper Text Markup Language Documents get formatted/displayed using Web browsers (Netscape, Mosaic, Explorer) WWW clients Internet & Web Based Technology 17
18 Illustration Web Client http request http response http response http request Web Servers Internet & Web Based Technology 18
19 Topics for Self-study Hyper Text Markup Language Hyper Text Transport Protocol Internet & Web Based Technology 19
20 HTML Forms
21 Introduction Provides two-way communication between web servers and browsers. Demand for most of the emerging applications. Provides dynamic contents. BROWSER WEB SERVER Internet & Web Based Technology 21
22 What is a HTML FORM? A form basically contains boxes and buttons. Real-life examples: Search engines On-line purchase of items Registration The form allows a user to fill up the blank entries and send it back to the owner of the page. Called SUBMITTING the form. Internet & Web Based Technology 22
23 FORM Example Internet & Web Based Technology 23
24 FORM Tags and Attributes Several tags are used in connection with forms: <form> </form> <input> <textarea> </textarea> <select> </select> Internet & Web Based Technology 24
25 <FORM> </FORM> This tag is used to bracket a HTML form. Includes attributes which specify where and how to deliver filled-up information to the web server. Two main attributes: METHOD ACTION Internet & Web Based Technology 25
26 METHOD: Indicates how the information in the form will be sent to the web server when the form is submitted. Two possible values: POST: causes a form s contents to be parsed one element at a time. GET: concatenates all field names and values in a single large string. POST is the preferred method because of string size limitations in most systems. Internet & Web Based Technology 26
27 ACTION: Specifies the URL of a program on the origin server that will be receiving the form s inputs. Traditionally called Common Gateway Interface (CGI). Details of CGI to be discussed later. The specified program is executed on the server, when the form is submitted. Output sent back to the browser. Internet & Web Based Technology 27
28 Typical usage: <FORM METHOD= POST ACTION= cgi-bin/myprog.pl >.... </FORM> Internet & Web Based Technology 28
29 <INPUT> This tag defines a basic form element. Several attributes are possible: TYPE NAME SIZE MAXLENGTH VALUE SRC ALIGN Internet & Web Based Technology 29
30 TYPE: Defines the kind of element that is to be displayed in the form. TEXT defines a text box, which provides a single line area for entering text. RADIO radio button, used when a choice must be made among several alternatives (clicking on one of the buttons turns off all others in the same group). CHECKBOX similar to the radio buttons, but each box here can be selected independently of the others. Internet & Web Based Technology 30
31 PASSWORD similar to text box, but characters are not shown as they are typed. HIDDEN used for output only; cannot be modified (mainly used to refer to choices that have already been made earlier). IMAGE used for active maps. When the user clicks on the image, the (x,y) co-ordinates are stored in variables, and are returned for further processing. SUBMIT creates a box labeled Submit; if clicked, the form data are passed on to the designated CGI script. RESET creates a box labeled Reset; if clicked, clears a form s contents. Internet & Web Based Technology 31
32 NAME: Specifies a name for the input field. The input-handling program (CGI) in reality receives a number of (name,value) pairs. SIZE: Defines the number of characters that can be displayed in a TEXT box without scrolling. MAXLENGTH: Defines the maximum number of characters a TEXT box can contain. Internet & Web Based Technology 32
33 VALUE: Used to submit a default value for a TEXT or HIDDEN field. Can also be used for specifying the label of a button (renaming Submit, for example). SRC: Provides a pointer to an image file. Used for clickable maps. ALIGN: Used for aligning image types. ALIGN = TOP MIDDLE BOTTOM Internet & Web Based Technology 33
34 <TEXTAREA> </TEXTAREA> Can be used to accommodate multiple text lines in a box. Attributes are: NAME: name of the field. ROWS: number of lines of text that can fit into the box. COLS: width of the text area on the screen. Internet & Web Based Technology 34
35 <SELECT>. </SELECT> Used along with the tag <OPTION>. Used to define a selectable list of elements. The list appears as a scrollable menu or a pop-up menu (depends on browser). Attributes are: NAME: name of the field. SIZE: specifies the number of option elements that will be displayed at a time on the menu. (If actual number exceeds SIZE, a scrollbar will appear). MULTIPLE: specifies that multiple selections from the list can be made. Internet & Web Based Technology 35
36 <FORM.>.. Languages known: <SELECT NAME= lang SIZE=3 MULTIPLE> <OPTION> English <OPTION> Hindi <OPTION> French <OPTION> Hebrew </SELECT> </FORM> Internet & Web Based Technology 36
37 Example 1 <HTML> <HEAD> <TITLE> Using HTML Forms </TITLE> </HEAD> <BODY TEXT="#FFFFFF" BGCOLOR="#0000FF" LINK="#FF9900" VLINK="#FF9900" ALINK="#FF9900"> <CENTER><H3> Student Registration Form </H3> </CENTER> Please fill up the following form about the courses you will register for this Semester. Internet & Web Based Technology 37
38 <FORM METHOD="POST" ACTION="/cgi/feedback"> <P> Name: <INPUT NAME="name" TYPE="TEXT" SIZE="30" MAXLENGTH="50"> <P> Roll Number: <INPUT NAME="rollno" TYPE="TEXT" SIZE="7"> <P> Course Numbers: <INPUT NAME="course1" TYPE="TEXT" SIZE="6"> <INPUT NAME="course2" TYPE="TEXT" SIZE="6"> <INPUT NAME="course3" TYPE="TEXT" SIZE="6"> <P> <P> Press SUBMIT when done. <P> <INPUT TYPE="SUBMIT"> <INPUT TYPE="RESET"> </FORM> </BODY> </HTML> Internet & Web Based Technology 38
39 Internet & Web Based Technology 39
40 Example 2 <HTML> <HEAD> <TITLE> Using HTML Forms </TITLE> </HEAD> <BODY TEXT="#FFFFFF" BGCOLOR="#0000FF" LINK="#FF9900" VLINK="#FF9900" ALINK="#FF9900"> <CENTER> <H3> Student Registration Form </H3> </CENTER> Please fill up the form below and press DONE when done. Internet & Web Based Technology 40
41 <FORM METHOD="POST" ACTION="/cgi/feedback"> <P> Name: <INPUT NAME="name" TYPE="TEXT" SIZE="30" MAXLENGTH="50"> <P> Roll Number: <INPUT NAME="rollno" TYPE="TEXT" SIZE="7"> <P> Course Numbers: <INPUT NAME="course1" TYPE="TEXT" SIZE="6"> <INPUT NAME="course2" TYPE="TEXT" SIZE="6"> <INPUT NAME="course3" TYPE="TEXT" SIZE="6"> <P> Category: SC <INPUT NAME="cat" TYPE=RADIO> ST <INPUT NAME="cat" TYPE=RADIO> GE <INPUT NAME="cat" TYPE=RADIO> Internet & Web Based Technology 41
42 <P> Mother tongue: <SELECT NAME="mtongue" SIZE="3"> <OPTION> Hindi <OPTION> Bengali <OPTION> Gujrati <OPTION> Tamil <OPTION> Oriya <OPTION> Assamese </SELECT> <P> <P> Thanks for the information. <P> <INPUT TYPE="SUBMIT" VALUE="DONE"> <INPUT TYPE="RESET" VALUE="CLEAR FORM"> </FORM> </BODY> </HTML> Internet & Web Based Technology 42
43 Internet & Web Based Technology 43
44 Example 3 <HTML> <HEAD> <TITLE> Using HTML Forms </TITLE> </HEAD> <BODY TEXT="#FFFFFF" BGCOLOR="#0000FF" LINK="#FF9900" VLINK="#FF9900" ALINK="#FF9900"> <CENTER> <H3> Student Feedback Form </H3> </CENTER> Please fill up the following form and press DONE when finished. Internet & Web Based Technology 44
45 <FORM METHOD="POST" ACTION="/cgi/feedback"> <P> Name: <INPUT NAME="name" TYPE="TEXT" SIZE="30" MAXLENGTH="50"> <P> Roll Number: <INPUT NAME="rollno" TYPE="TEXT" SIZE="7"> <P> Password: <INPUT NAME="code" TYPE=PASSWORD SIZE="10"> <P> Course Numbers: <INPUT NAME="course1" TYPE="TEXT" SIZE="6"> <INPUT NAME="course2" TYPE="TEXT" SIZE="6"> <INPUT NAME="course3" TYPE="TEXT" SIZE="6"> Internet & Web Based Technology 45
46 <P> Category: SC <INPUT NAME="cat" TYPE=RADIO> ST <INPUT NAME="cat" TYPE=RADIO> GE <INPUT NAME="cat" TYPE=RADIO> <P> Mother tongue: <SELECT NAME="mtongue" SIZE="3"> <OPTION> Hindi <OPTION> Bengali <OPTION> Gujrati <OPTION> Tamil <OPTION> Assamese <OPTION> Oriya </SELECT> Internet & Web Based Technology 46
47 <P> Languages known: English <INPUT NAME="lang" TYPE=CHECKBOX> Hindi <INPUT NAME="lang" TYPE=CHECKBOX> <P> Scholarship holder (select for yes): <INPUT NAME="schol" TYPE=CHECKBOX> <P> General feedback: <TEXTAREA NAME="feed" ROWS=3 COLS=20> </TEXTAREA> <P> <P> Thanks for the information. <P> <INPUT TYPE="SUBMIT" VALUE="DONE"> <INPUT TYPE="RESET" VALUE="CLEAR FORM"> </FORM> </BODY> </HTML> Internet & Web Based Technology 47
48 Internet & Web Based Technology 48
49 How to Submit a Form? Three different ways: Clicking on the Submit button. Clicking on an active map. Pressing <ENTER> on a TEXT box or TEXTAREA. Internet & Web Based Technology 49
50 The Basic Mechanism original page P submit form P new html page cgi Browser Internet & Web Based Technology 50
51 Web page including form Resides on the web server in the regular folder where html files and other documents are kept. CGI script program handling form data Resides under a special folder on the web server (usually, cgi-bin). May be written in Perl, C, shell script, etc. Web page linked to the cgi script. Internet & Web Based Technology 51
52 <FORM METHOD= POST ACTION= cgi-bin/myprog.pl >.... </FORM> Internet & Web Based Technology 52
53 How to Write the CGI Program? Must know How to access the form data. Mechanism depends on METHOD (GET or POST). How to return processed output back to the browser. HTML file created on the fly (typically). Details to be discussed later. Good idea to have a look at a typical Perl script. Internet & Web Based Technology 53
54 Image Maps
55 Introduction An image map allows us to create links to different URLs depending upon where we click on the image. Useful for creating links on maps, diagrams, fancy buttons, etc. There are two parts to an image map. The image. The map file. The map file defines the areas of the image and the URLs that correlate to different areas. Internet & Web Based Technology 55
56 So basically An image map is a single image that contains hot spots. When we click on a hot spot, we go to a new location (URL). Requires loading of only one image from the server. Thus requires fewer server calls. Is generally better looking. Internet & Web Based Technology 56
57 Types of Image Maps Depending on the way they are configured and the location where the processing is carried out, image maps can be classified as two types. Server side Traditional Client side More efficient; supported by all recent browsers. Internet & Web Based Technology 57
58 Server Side Image Maps
59 Basic Functioning Three ingredients are required to incorporate an image map into a HTML document. a) Creating the image map with well-defined boundaries. b) Creating an image map configuration file. Contains relative pixel co-ordinates marking the boundaries of the different clickable regions. Allowable geometries: circle, poly, point, rect. c) Establish appropriate HTML information in the page to link the map image, the map configuration file, and an (optional) CGI script which decodes of map coordinates and selects the corresponding URL. Internet & Web Based Technology 59
60 Typical Usage <HTML> <BODY>.... <A HREF = cgi-bin/map/menu.map > <IMG SRC = IMAGES/imagemap.gif ISMAP> </A>.... </BODY> </HTML> Internet & Web Based Technology 60
61 The URL that is sent to the image map program or web server when a user clicks the map resembles the following: where x and y are integers denoting the pixel co-ordinate of the point of click. Internet & Web Based Technology 61
62 Image Map Configuration File There are several different formats, all similar, and varying slightly in syntax. a) NCSA httpd server b) APACHE httpd server c) CERN httpd server d) W3C httpd server Internet & Web Based Technology 62
63 Example: APACHE server A sample configuration file looks like: # An example default base_url circle circle.html 45,45,80,45 rect rectangle.html 20,10,178,70 point point.html 100,50 poly polygon.html 200,60,295,60,275,10 Internet & Web Based Technology 63
64 Defining the default Typically, the first line in the map file is a default line. Defines the URL to which users will be taken if they click on an undefined area of the image. Defining circles A circle is defined by two co-ordinates. The first co-ordinate is the centre point. The second co-ordinate is any point on the circumference. Internet & Web Based Technology 64
65 Defining rectangles A rectangle is defined by two co-ordinates. The first co-ordinate refers to the upper left corner. The second co-ordinate refers to the bottom right corner. Defining points Defines by a single co-ordinate. Clicks closest to that point on the image map will take to the specified URL. Defining polygons A polygon is defined by a series of co-ordinates that outline the area to be defined. We can start from any vertex of the polygon. Maximum number of vertices is 100. Internet & Web Based Technology 65
66 Illustrative Example Internet & Web Based Technology 66
67 An Important Point For each of the specified URLs, it is required to specify the entire path. However, common prefix URL can be specified by the base_url command. base_url circle circle.html 45,45,80,45 rect rectangle.html 20,10,178,70 Internet & Web Based Technology 67
68 Client Side Image Maps
69 Introduction In client-side image maps, the map information is contained in the HTML document itself. Consists of three components: An ordinary image file (gif, jpeg, png) A map delimited by <MAP> tags containing the co-ordinate and URL information for each region. The USEMAP attribute within the <IMG> tag that indicates which map to reference. Internet & Web Based Technology 69
70 Advantages They are self-contained within the HTML document. No dependence on the server to handle every client s request for image mapping. Faster processing; improves response time. No longer required to specify a default URL. Clicking outside hyperlinked area will take a user nowhere. Complete URL information displays in the status bar when the mouse moves over the hot spots. In contrast, server-side image maps show only coordinates. Internet & Web Based Technology 70
71 Disadvantage The only disadvantage is that they are not universally supported. Netscape Navigator 1.0 and Internet Explorer 2.0 do not support client-side image maps. Internet & Web Based Technology 71
72 Sample Client-side Image Map <MAP NAME = demo_map > <AREA SHAPE=CIRCLE COORDS= 45,45,20 HREF= circle.html ALT= Circle > <AREA SHAPE=RECT COORDS= 20,20,80,80 HREF= rectangle.html ALT= Rectangle > <AREA SHAPE=POLY COORDS= 10,10,50,50,70,100 HREF= polygon.html ALT= Triangle > </MAP> Internet & Web Based Technology 72
73 Some points: POINT is not supported. CIRCLE is specified by the centre co-ordinates, followed by its radius. Comments can be included as in HTML, using <!.. > Internet & Web Based Technology 73
74 Linking to an Image This can be done using the <IMG> tag using the USEMAP attribute. <IMG SRC= mymap.gif USEMAP= #demo_map > References the image mymap.gif. Searches for the <MAP> element with the NAME attribute of demo_map. Internet & Web Based Technology 74
75 A Complete Example <HTML> <HEAD><TITLE> Client Side Image map </TITLE></HEAD> <BODY> <MAP NAME = demo_map > <AREA SHAPE=CIRCLE COORDS= 45,45,20 HREF= circle.html ALT= Circle > <AREA SHAPE=RECT COORDS= 20,20,80,80 HREF= rectangle.html ALT= Rectangle > <AREA SHAPE=POLY COORDS= 10,10,50,50,70,100 HREF= polygon.html ALT= Triangle > </MAP> <IMG SRC= mymap.gif USEMAP= #demo_map > </BODY> </HTML> Internet & Web Based Technology 75
76 Combining the Two Motivation for combining client and server side image map processing: Browsers ignore tags they do not understand. Newer browsers will use client-side map. Older browsers will use the server-side map. How to do this? Internet & Web Based Technology 76
77 <A HREF = > <IMG SRC = mymap.gif USEMAP = #demo_map ISMAP> </A> USEMAP will be ignored by older browsers. ISMAP will be considered redundant by browsers supporting client-side map. Internet & Web Based Technology 77
78 Creating Image Maps
79 Available Tools There are several tools using which we can create an image map. Some of the tools are: MapEdit Macromedia Dreamweaver Adobe GoLive Irrespective of the tool used, the steps required for creation are more or less the same. Internet & Web Based Technology 79
80 Creating the Map Typical steps: Open the image in the imagemap editor. Define areas within the image that will be clickable: rectangle, circle or polygon. Highlight an area, and enter the URL for that area. Repeat the above steps for all the clickable areas of the image. For server-side image maps, we also need to define a default URL. Select the type (client or server side). Internet & Web Based Technology 80
81 Hyper Text Transfer Protocol (HTTP)
82 What is HTTP? Hyper Text Transfer Protocol A protocol using which web clients (browsers) interact with web servers. It is a stateless protocol. Fresh connection for every item to be downloaded. Transfers hypertext across the Internet. A text with links to other text documents. Internet & Web Based Technology 82
83 HTTP Protocol Web clients (browsers) and web servers communicate via HTTP protocol. Basic steps: Client opens socket connection to the HTTP server. Typically over port 80. Client sends HTTP requests to server. Server sends back response. Server closes connection. HTTP is a stateless protocol. Internet & Web Based Technology 83
84 Illustration Web Client http request http response http response http request Web Servers Internet & Web Based Technology 84
85 HTTP Request Format A client request to a server consists of: Request method Path portion of the HTTP URL Version number of the HTTP protocol Optional request header information Blank line POST or PUT data if present. Internet & Web Based Technology 85
86 HTTP Request Methods GET Most common HTTP method. Returns the contents of the specified document. Places any parameters in request header. Can also be used to submit forms: The form data is URL-encoded and appended to the GET command URL. GET /cgi-bin/myscript.cgi?roll=1234&sex=m HTTP/1.0 Internet & Web Based Technology 86
87 Illustration of GET A very simple HTTP connection to a server. telnet http Client sends request for a file: GET /test.html HTTP/1.0 The server sends back the response: HTTP/ OK Date: Sun, 22 May :51:42 GMT Server: Apache/ (Win32) Last-Modified: Sun, 22 May :51:10 GMT Accept-Ranges: bytes Content-Length: 119 Connection: close Internet & Web Based Technology 87
88 Illustration of GET (contd.) Content-Type: text/html <html> <head> <title> A test page </title> </head> <body> This is the body of the test page. </body> </html> Internet & Web Based Technology 88
89 HTTP Request Methods (contd.) HEAD Returns only the header information of the specified document. Used by clients to determine the file size, modification date, server version, etc. Internet & Web Based Technology 89
90 Illustration of HEAD Client sends HEAD /index.html HTTP/1.0 Server responds back with: HTTP/ OK Date: Sun, 22 May :08:37 GMT Server: Apache/ (Win32) Last-Modified: Thu, 03 May :30:38 GMT Accept-Ranges: bytes Content-Length: 1494 Connection: close Content-Type: text/html Internet & Web Based Technology 90
91 HTTP Request Methods (contd.) POST Used to send data to the server to be processed in some way, as in a CGI script. Basic difference from GET: A block of data is sent along with the request. Extra headers like Content-Type and Content-Length are used for this purpose. The requested object is not a resource to retrieve. Rather, it is a script that can handle the data being sent. The server response is not a static file; but is generated dynamically as the program output. Internet & Web Based Technology 91
92 Illustration of POST A typical form submission, using POST is illustrated below: POST /cgi-bin/myscript.cgi HTTP/1.0 From: isg@hotmail.com User-Agent: HTTPTool/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 32 Roll=1234&Sex=M&Age=20 Internet & Web Based Technology 92
93 HTTP Request Methods (contd.) PUT Replaces the contents of the specified document with data supplied along with the command. Not used widely. DELETE: Deletes the specified document from the server. Not used widely. Internet & Web Based Technology 93
94 HTTP Request Headers After a HTTP request line, a client can send any number of header fields. Usually optional used to convey some information. Some commonly used fields: Accept: MIME types client accepts, in order of preference. Connection: connection options, close or Keep-Alive. Content-Length: number of bytes of data to follow. Content-Type: MIME type and subtype of the data that follows. Pragma: no-cache option directs the server/proxy to return a fresh document even though a cached copy may exist. Internet & Web Based Technology 94
95 HTTP Request Data To be given if the request type is either PUT or POST. Send the data immediately after the HTTP request header, and a blank line. Internet & Web Based Technology 95
96 HTTP Response An initial response line. Also called the status line. Consists of three parts separated by spaces The HTTP version A 3-digit response status code An English phrase describing the status code. HTTP/ OK HTTP/ Not Found Internet & Web Based Technology 96
97 HTTP Response (contd.) Header information, followed by a blank line, and then the data. HTTP/ OK Date: Sun, 22 May :51:42 GMT Server: Apache/ (Win32) Last-Modified: Sun, 22 May :51:10 GMT Content-Length: 119 Connection: close Content-Type: text/html <html> <head> <title> A test page </title> </head> <body> This is the body of the test page. </body> </html> Internet & Web Based Technology 97
98 3-digit Status Code 1xx 2xx 3xx 4xx 5xx Indicates informational messages only. Indicates successful transaction. Redirects the client to another URL. Indicates client error, such as unauthorized request. Indicates internal server error. Internet & Web Based Technology 98
99 Common Status Codes 200 OK 301 Moved Permanently 302 Moved Temporarily 401 Unauthorized 403 Forbidden 404 Not Found 500 Internal Server Error Internet & Web Based Technology 99
100 HTTP Response Headers Common response headers include: Content-Length Size of the data in bytes. Content-Type MIME type and subtype of data being sent. Date Current date. Expires Date at which document expires. Last-Modified Set-Cookie Name/value pair to be stored as cookie. Internet & Web Based Technology 100
101 HTTP Response Data A blank line follows the response header, and the data follows next. No upper limit on data size. HTTP/1.0 Server typically closes connection after completing a transaction. HTTP/1.1 Server keeps the connection open by default, across transactions. Internet & Web Based Technology 101
102 HTTP version 1.1 Current standard and widely used. Became IETF draft standard in Improvements over HTTP 1.0: Requires host identification. GET /index.html HTTP/1.1 Host: <blank line> Allows multi-homed servers. More than one domain living on same server. Internet & Web Based Technology 102
103 HTTP version 1.1 (contd.) Default support for persistent connections. Multiple transactions over a single connection. Support for content negotiation. Decides on the best among the available representations. Server-driven or browser-driven. Browsers can request part of document. Specify the bytes using Range header. Browser can ask for more than one range. Continue interrupted downloads. Range: bytes= Internet & Web Based Technology 103
104 HTTP version 1.1 (contd.) Efficient caching support A document caching model that allows both the server and the client to control the level of cachability and update conditions and requirements. HTTP 1.1 requires several extra things from both clients and servers. Mandatory to know these if one is trying to write a HTTP client or server. Internet & Web Based Technology 104
105 HTTP 1.1 Client Requirements The clients must do the following: Include the Host: header with each request. Either support persistent connections, or include the Connection: close header with each request. Handle the 100 Continue response. Accept responses with chunked data. Internet & Web Based Technology 105
106 HTTP 1.1 Server Requirements The servers must do the following: Require the Host: header from HTTP 1.1 clients. Accepts absolute URL s in a request. Accept requests with chunked data. Include the Date: header in each response. Support at least the GET and HEAD methods. Support HTTP 1.0 requests. Either support persistent connections, or include the Connection: close header with each request. Internet & Web Based Technology 106
107 HTTP Proxy servers What is a HTTP Proxy server? A program that acts as an interface between a client and a server. It receives requests from the clients, and forwards them to the server(s). The responses are sent back in the same way. A proxy thus acts both as a HTTP client and a server. Internet & Web Based Technology 107
108 Request from a client to a proxy server differs from normal server requests in one way. The complete URL of the resource being requested must be specified. GET HTTP/1.0 Required by the proxy to know where to forward the request to. Internet & Web Based Technology 108
109 Uniform Resource Locators (URL)
110 What is a URL? They are the mechanism by which documents are addressed in the WWW. A URL contains the following information: Name of the site containing the resource. The type of service to be used to access the resource (ftp, http, etc.). The port number of the service. Default assumed, if omitted. Location of the resource (path name) in the server. Internet & Web Based Technology 110
111 URLs specify Internet addresses. General format for URL: scheme://address:port/path/filename Examples: news:alt.rec.flowers ftp:// Internet & Web Based Technology 111
112 Sending a Query String The mechanism can also be used to send a query string to a specified URL. Used for CGI scripts. Place a question mark at the end of the URL, followed by the query string. Internet & Web Based Technology 112
113 CGI Scripts
114 Introduction CGI stands for Common Gateway Interface. Allows interactive web pages to be written. Page created dynamically, based on user request. CGI programs are called scripts because the first CGI programs were written using UNIX shell scripts, and PERL. Can be written in almost any language. Usually resides in a special directory in the web server (typically, cgi-bin ). Internet & Web Based Technology 114
115 Apache Directory Structure: a case study cgi-bin Here most of the interactive programs will reside. These will be written in Perl, Java, or any other programming language. conf This will contain the configuration files. htdocs This will contain the actual HTML documents, and will typically have many subdirectories. This directory is known as the DocumentRoot. Internet & Web Based Technology 115
116 icons This contains the icons that Apache will use when displaying information or error messages. images This will contain the image files that will be used in the web site. logs This will contain the log files: the access_log and error_log. Internet & Web Based Technology 116
117 Structure of CGI Script When a CGI script is invoked by the server, the server passes information to the script in one of two ways: a) GET b) POST The request method used is passed to the script via the environment variable REQUEST_METHOD. Internet & Web Based Technology 117
118 GET Request Method The GET method sends request information as parameters appended at the end of the URL. name=niloy&rollno=7312&age=24 The parameters are passed to the CGI program via the environment variable QUERY_STRING. For the above example, QUERY_STRING will contain name=niloy&rollno=7312&age=24 Internet & Web Based Technology 118
119 POST Request Method The data gets passed from the server to the CGI script through STDIN. The environment variable CONTENT_LENGTH indicates the size in bytes of the incoming data. The format of the POST-ed data is: var1=value1&var2=value2& The REQUEST_METHOD environment variable must be examined to know whether or not to read from STDIN. Internet & Web Based Technology 119
120 To Summarize For GET Data are read from QUERY_STRING environment variable. For POST Data are read from STDIN. Number of bytes to be read is obtained from CONTENT_LENGTH. Both data available in same format: var1=value1&var2=value2& name=niloy&rollno=7312&age=24 Internet & Web Based Technology 120
121 URL Encoding For platform independence, all data passed to the server are URL-encoded. Variables are separated by &. Special characters (including & ) are escaped as 2-digit hex numbers, e,g, %25 % %20 + sign is interpreted as a space character. Internet & Web Based Technology 121
122 The process of decoding back: Separate out the variables. Replace all + signs by spaces. Replace all %## with the corresponding ASCII character. Internet & Web Based Technology 122
123 Which characters are encoded? Control characters: 0x00 through 0x1F, and 0x7F. 8-bit characters: 0x80 through 0xFF Characters given special importance within URLs: ; /? & = + $, Characters often used to delimit URLs: < > # % Characters considered unsafe as they may have special meaning for other protocols: { } \ ^ [ ] ` Internet & Web Based Technology 123
124 A point to note: When the server passes data using the POST method, the scripts checks the environment variable CONTENT_TYPE. If the value of CONTENT_TYPE is application/x-www-form-urlencoded the data needs to be decoded before use. Internet & Web Based Technology 124
125 Basic Structure of CGI Script Step 1: Initialization Check REQUEST_METHOD. Parse string and extract variables depending on GET or POST. Check CONTENT_TYPE, to find out if the string is URLencoded. Step 2: Processing Process the input data. Output the results (MIME-type header, and the contents). Step 3: Termination Release the system resources. Terminate the program. Internet & Web Based Technology 125
126 Environment Variables Used CONTENT_LENGTH Length of URL-encoded data in bytes. CONTENT_TYPE Specifies the type of data as a MIME header. QUERY_STRING Information at the end of the URL after?. REMOTE_ADDR IP address of the client making the request. REMOTE_HOST Resolved host name of the client. Internet & Web Based Technology 126
127 REQUEST_METHOD GET or POST. SERVER_NAME Web server s host name, or IP address. SERVER_PROTOCOL Say, HTTP/1.0 SERVER_PORT Port number on server that received the HTTP request. SCRIPT_NAME Name of the CGI script being run. Internet & Web Based Technology 127
128 Response Header The most common response header is Content- Type, which is based on MIME types. Typical values are: Content-Type: text/plain text/html image/gif video/avi Internet & Web Based Technology 128
129 A complete MIME header looks like this: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Description: Postscript Internet & Web Based Technology 129
130 CGI Real-life Examples Search Engine Page-hit Counter Student Registration On-line Booking of Tickets On-line Purchase of Items Gateways Feedback Scripts Web-based Games Internet & Web Based Technology 130
131 Security Issues with CGI Scripts A CGI script is a program that anyone in the world can run on your machine. Do not trust the user input. In particular, do not put user data in a shell command without verifying the data carefully. An example in next slide. Internet & Web Based Technology 131
132 An example Suppose that you have a CGI script that lets users run the finger command on your host. In Perl, there can be a line: system finger $username A malicious user may enter isg; rm r / as the username. The result all files will get deleted. Internet & Web Based Technology 132
133 Enter UserId isg; rm r / Internet & Web Based Technology 133
134 An Example CGI Program Using bash shell script: #!/bin/sh CAT=/bin/cat echo Content-type: text/plain echo "" if [[ -x $CAT]] then $CAT $1 sort else echo Cannot find command on this system. fi Internet & Web Based Technology 134
135 What this program does? Sends the contents of a file residing on the server back to the browser. How to invoke? <A HREF="/cgi-bin/test1.sh? /home/user1/public_html/text-file.txt"> Click here to activate</a> $1 Internet & Web Based Technology 135
136 Another Example #!/bin/sh echo Content-type: text/html echo "" /bin/cat << EOM <HTML> <HEAD> <TITLE>File Output: /home/user1/public_html/text-file.txt </TITLE> </HEAD> <BODY bgcolor="#cccccc" text="#000000"> <HR SIZE=5> <H1>File Output: /home/user1/public_html/text-file.txt </H1> <HR SIZE=5> <P> Internet & Web Based Technology 136
137 <SMALL> <PRE> EOM /bin/cat /home/user1/public_html/text-file.txt CAT << EOM </PRE> </SMALL> <P> </BODY> </HTML> EOM Internet & Web Based Technology 137
138 What this program does? Outputs the contents of the file text-file.txt as a HTML file. How to invoke? Through a dummy HTML form. Through the following link: <A HREF="/cgi-bin/test2.sh">Click here</a> Internet & Web Based Technology 138
139 Gateways: an Example gateways are very popular on the web. Allows users to send and receive mails, without having to worry about managing a mail server. Can be designed using CGI scripts, or any other similar technologies. Popular gateways: yahoo, rediffmail, hotmail, gmail, etc. Internet & Web Based Technology 139
140 Internet & Web Based Technology 140
141 Browser Gateway Mail Server Internet & Web Based Technology 141
142 Writing CGI Scripts using Perl Would be discussed later. After discussing the syntax and semantics of Perl. We will see how the form data can be extracted and processed. Requires string manipulation. Internet & Web Based Technology 142
COSC 2206 Internet Tools. The HTTP Protocol
COSC 2206 Internet Tools The HTTP Protocol http://www.w3.org/protocols/ What is TCP/IP? TCP: Transmission Control Protocol IP: Internet Protocol These network protocols provide a standard method for sending
More informationOutline of Lecture 5. Course Content. Objectives of Lecture 6 CGI and HTML Forms
Web-Based Information Systems Fall 2004 CMPUT 410: CGI and HTML Forms Dr. Osmar R. Zaïane University of Alberta Outline of Lecture 5 Introduction Poor Man s Animation Animation with Java Animation with
More informationDynamic Documents. Kent State University Dept. of Math & Computer Science. CS 4/55231 Internet Engineering. What is a Script?
CS 4/55231 Internet Engineering Kent State University Dept. of Math & Computer Science LECT-12 Dynamic Documents 1 2 Why Dynamic Documents are needed? There are many situations when customization of the
More information3. WWW and HTTP. Fig.3.1 Architecture of WWW
3. WWW and HTTP The World Wide Web (WWW) is a repository of information linked together from points all over the world. The WWW has a unique combination of flexibility, portability, and user-friendly features
More informationWeb Technology. COMP476 Networked Computer Systems. Hypertext and Hypermedia. Document Representation. Client-Server Paradigm.
Web Technology COMP476 Networked Computer Systems - Paradigm The method of interaction used when two application programs communicate over a network. A server application waits at a known address and a
More informationNETB 329 Lecture 13 Python CGI Programming
NETB 329 Lecture 13 Python CGI Programming 1 of 83 What is CGI? The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom
More informationWEB TECHNOLOGIES CHAPTER 1
WEB TECHNOLOGIES CHAPTER 1 WEB ESSENTIALS: CLIENTS, SERVERS, AND COMMUNICATION Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson THE INTERNET Technical origin: ARPANET (late 1960
More informationWeb Programming. Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun.
Web Programming Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun. 1 World-Wide Wide Web (Tim Berners-Lee & Cailliau 92)
More informationForms, CGI. HTML forms. Form example. Form example...
Objectives HTML forms The basics of HTML forms How form content is submitted GET, POST Elements that you can have in forms Responding to forms CGI the Common Gateway Interface Later: Servlets Generation
More informationHTML: Fragments, Frames, and Forms. Overview
HTML: Fragments, Frames, and Forms Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@ imap.pitt.edu http://www.sis. pitt.edu/~spring Overview Fragment
More informationForms, CGI. Cristian Bogdan 2D2052 / 2D1335 F5 1
Forms, CGI Cristian Bogdan 2D2052 / 2D1335 F5 1 Objectives The basics of HTML forms How form content is submitted GET, POST Elements that you can have in forms Responding to forms Common Gateway Interface
More informationInternet Architecture. Web Programming - 2 (Ref: Chapter 2) IP Software. IP Addressing. TCP/IP Basics. Client Server Basics. URL and MIME Types HTTP
Web Programming - 2 (Ref: Chapter 2) TCP/IP Basics Internet Architecture Client Server Basics URL and MIME Types HTTP Routers interconnect the network TCP/IP software provides illusion of a single network
More informationOutline. Lecture 8: CGI (Common Gateway Interface ) Common Gateway Interface (CGI) CGI Overview
Outline Lecture 8: CGI (Common Gateway Interface ) CGI Overview Between Client and Handler Between Web Server and Handler Wendy Liu CSC309F Fall 2007 1 2 Common Gateway Interface (CGI) CGI Overview http://www.oreilly.com/openbook/cgi/
More informationWeb History. Systemprogrammering 2006 Föreläsning 9 Web Services. Internet Hosts. Web History (cont) 1945: 1989: Topics 1990:
Systemprogrammering 2006 Föreläsning 9 Web Services Topics HTTP Serving static content Serving dynamic content 1945: 1989: Web History Vannevar Bush, As we may think, Atlantic Monthly, July, 1945. Describes
More informationGlobal Servers. The new masters
Global Servers The new masters Course so far General OS principles processes, threads, memory management OS support for networking Protocol stacks TCP/IP, Novell Netware Socket programming RPC - (NFS),
More informationGiving credit where credit is due
CSCE 230J Computer Organization Web Services Dr. Steve Goddard goddard@cse.unl.edu Giving credit where credit is due Most of slides for this lecture are based on slides created by Drs. Bryant and O Hallaron,
More informationChapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc.
Chapter 1 FORMS SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: How to use forms and the related form types. Controls for interacting with forms. Menus and presenting users with
More informationLecture 7b: HTTP. Feb. 24, Internet and Intranet Protocols and Applications
Internet and Intranet Protocols and Applications Lecture 7b: HTTP Feb. 24, 2004 Arthur Goldberg Computer Science Department New York University artg@cs.nyu.edu WWW - HTTP/1.1 Web s application layer protocol
More informationApplication Level Protocols
Application Level Protocols 2 Application Level Protocols Applications handle different kinds of content e.g.. e-mail, web pages, voice Different types of content require different kinds of protocols Application
More informationImage mapping One of the things that mystifies newcomers to the Web is how to
Image mapping One of the things that mystifies newcomers to the Web is how to set up an image so that when you click on something in it, you re taken to a specific location on the Web. The answer: image
More informationForms, CGI. Objectives
Forms, CGI Objectives The basics of HTML forms How form content is submitted GET, POST Elements that you can have in forms Responding to forms Common Gateway Interface (CGI) Later: Servlets Generation
More informationCOMPUTER NETWORKS AND COMMUNICATION PROTOCOLS. Web Access: HTTP Mehmet KORKMAZ
COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS Web Access: HTTP 16501018 Mehmet KORKMAZ World Wide Web What is WWW? WWW = World Wide Web = Web!= Internet Internet is a global system of interconnected computer
More informationCategory: Informational August A Proposed Extension to HTML : Client-Side Image Maps
Network Working Group J. Seidman Request for Comments: 1980 Spyglass, Inc. Category: Informational August 1996 A Proposed Extension to HTML : Client-Side Image Maps Status of this Memo This memo provides
More informationHTTP Protocol and Server-Side Basics
HTTP Protocol and Server-Side Basics Web Programming Uta Priss ZELL, Ostfalia University 2013 Web Programming HTTP Protocol and Server-Side Basics Slide 1/26 Outline The HTTP protocol Environment Variables
More informationCMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB
CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 8 HTML Forms and Basic CGI Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you will
More informationServer-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University
Server-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University 1 Objectives You will learn about Server-side web programming in Python Common Gateway Interface
More informationSummary 4/5. (contains info about the html)
Summary Tag Info Version Attributes Comment 4/5
More informationUSQ/CSC2406 Web Publishing
USQ/CSC2406 Web Publishing Lecture 4: HTML Forms, Server & CGI Scripts Tralvex (Rex) Yeap 19 December 2002 Outline Quick Review on Lecture 3 Topic 7: HTML Forms Topic 8: Server & CGI Scripts Class Activity
More informationWeb Engineering. Basic Technologies: Protocols and Web Servers. Husni
Web Engineering Basic Technologies: Protocols and Web Servers Husni Husni@trunojoyo.ac.id Basic Web Technologies HTTP and HTML Web Servers Proxy Servers Content Delivery Networks Where we will be later
More informationThe HTTP protocol. Fulvio Corno, Dario Bonino. 08/10/09 http 1
The HTTP protocol Fulvio Corno, Dario Bonino 08/10/09 http 1 What is HTTP? HTTP stands for Hypertext Transfer Protocol It is the network protocol used to delivery virtually all data over the WWW: Images
More informationPYTHON CGI PROGRAMMING
PYTHON CGI PROGRAMMING http://www.tutorialspoint.com/python/python_cgi_programming.htm Copyright tutorialspoint.com The Common Gateway Interface, or CGI, is a set of standards that define how information
More informationComputer Networks. Wenzhong Li. Nanjing University
Computer Networks Wenzhong Li Nanjing University 1 Chapter 8. Internet Applications Internet Applications Overview Domain Name Service (DNS) Electronic Mail File Transfer Protocol (FTP) WWW and HTTP Content
More information2. Introduction to Internet Applications
2. Introduction to Internet Applications 1. Representation and Transfer 2. Web Protocols 3. Some Other Application Layer Protocols 4. Uniform Resource Identifiers (URIs) 5. Uniform Resource Locators (URLs)
More informationHow to work with HTTP requests and responses
How a web server processes static web pages Chapter 18 How to work with HTTP requests and responses How a web server processes dynamic web pages Slide 1 Slide 2 The components of a servlet/jsp application
More informationOutline of Lecture 3 Protocols
Web-Based Information Systems Fall 2007 CMPUT 410: Protocols Dr. Osmar R. Zaïane University of Alberta Course Content Introduction Internet and WWW TML and beyond Animation & WWW CGI & TML Forms Javascript
More informationCHAPTER 2. Troubleshooting CGI Scripts
CHAPTER 2 Troubleshooting CGI Scripts OVERVIEW Web servers and their CGI environment can be set up in a variety of ways. Chapter 1 covered the basics of the installation and configuration of scripts. However,
More informationHTML Forms. By Jaroslav Mohapl
HTML Forms By Jaroslav Mohapl Abstract How to write an HTML form, create control buttons, a text input and a text area. How to input data from a list of items, a drop down list, and a list box. Simply
More informationBuilding Web Based Application using HTML
Introduction to Hypertext Building Web Based Application using HTML HTML: Hypertext Markup Language Hypertext links within and among Web documents connect one document to another Origins of HTML HTML is
More informationMotivation For Networking. Information access Interaction among cooperative application programs Resource sharing
Motivation For Networking Information access Interaction among cooperative application programs Resource sharing CS422 -- PART 1 13 2003 Practical Results E-mail File transfer/access Web browsing Remote
More informationNetworking and Internet
Today s Topic Lecture 13 Web Fundamentals Networking and Internet LAN Web pages Web resources Web client Web Server HTTP Protocol HTML & HTML Forms 1 2 LAN (Local Area Network) Networking and Internet
More informationWWW: the http protocol
Internet apps: their protocols and transport protocols Application e-mail remote terminal access Web file transfer streaming multimedia remote file Internet telephony Application layer protocol smtp [RFC
More informationJeff Offutt SWE 642 Software Engineering for the World Wide Web
Networking Basics Behind the World Wide Web Jeff Offutt http://www.cs.gmu.edu/~offutt/ SWE 642 Software Engineering for the World Wide Web Adapted from chapter 1 slides for : Web Technologies : A Computer
More informationCMPE 151: Network Administration. Servers
CMPE 151: Network Administration Servers Announcements Unix shell+emacs tutorial. Basic Servers Telnet/Finger FTP Web SSH NNTP Let s look at the underlying protocols. Client-Server Model Request Response
More informationSimple But Useful Tools for Interactive WWW Development
Simple But Useful Tools for Interactive WWW Development Robert C. Maher Department of Electrical Engineering University of Nebraska-Lincoln Lincoln, NE 68588-0511 rmaher@unl.edu Abstract An important area
More informationCS105 Perl: Perl CGI. Nathan Clement 24 Feb 2014
CS105 Perl: Perl CGI Nathan Clement 24 Feb 2014 Agenda We will cover some CGI basics, including Perl-specific CGI What is CGI? Server Architecture GET vs POST Preserving State in CGI URL Rewriting, Hidden
More informationChapter 27 WWW and HTTP Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 27 WWW and HTTP 27.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 27-1 ARCHITECTURE The WWW today is a distributed client/server service, in which
More information1.264 Lecture 12. HTML Introduction to FrontPage
1.264 Lecture 12 HTML Introduction to FrontPage HTML Subset of Structured Generalized Markup Language (SGML), a document description language SGML is ISO standard Current version of HTML is version 4.01
More informationApplications & Application-Layer Protocols: The Web & HTTP
CPSC 360 Network Programming Applications & Application-Layer Protocols: The Web & HTTP Michele Weigle Department of Computer Science Clemson University mweigle@cs.clemson.edu http://www.cs.clemson.edu/~mweigle/courses/cpsc360
More informationPersistent systems. Traditional software: Data stored outside of program. Program
Persistent systems Traditional software: Data stored outside of program Program Persistent systems: Data part of program Execution never stops Transaction systems Program 1 Development of persistent languages
More informationCHAPTER 2 MARKUP LANGUAGES: XHTML 1.0
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document
More informationLecture 3. HTTP v1.0 application layer protocol. into details. HTTP 1.0: RFC 1945, T. Berners-Lee HTTP 1.1: RFC 2068, 2616
Lecture 3. HTTP v1.0 application layer protocol into details HTTP 1.0: RFC 1945, T. Berners-Lee Lee,, R. Fielding, H. Frystyk, may 1996 HTTP 1.1: RFC 2068, 2616 Ascii protocol uses plain text case sensitive
More informationM2-R4: INTERNET TECHNOLOGY AND WEB DESIGN
M2-R4: INTERNET TECHNOLOGY AND WEB DESIGN NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the
More informationThe World Wide Web. Internet
The World Wide Web Relies on the Internet: LAN (Local Area Network) connected via e.g., Ethernet (physical address: 00-B0-D0-3E-51-BC) IP (Internet Protocol) for bridging separate physical networks (IP
More informationIslamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.
Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 5049 Advanced Internet Technology Lab Lab # 1 Eng. Haneen El-masry February, 2015 Objective To be familiar with
More informationWWW Document Technologies
WWW Document Technologies Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu/~spring Overview The Internet
More informationGoLive will first ask you if your new site will be for one individual or a work group; select for a Single User, and click Next.
Getting Started From the Start menu, located the Adobe folder which should contain the Adobe GoLive 6.0 folder. Inside this folder, click Adobe GoLive 6.0. GoLive will open to its initial project selection
More informationFigure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.
Adobe Dreamweaver CS6 Project 3 guide How to create forms You can use forms to interact with or gather information from site visitors. With forms, visitors can provide feedback, sign a guest book, take
More information(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)
Internet Technology Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture No #14 HTML -Part II We continue with our discussion on html.
More informationWeb Programming Paper Solution (Chapter wise)
Introduction to web technology Three tier/ n-tier architecture of web multitier architecture (often referred to as n-tier architecture) is a client server architecture in which presentation, application
More informationD B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1
Web programming The HTML language The HTML language Basic concepts User interfaces in HTML Forms Tables Passing parameters stored in forms @2017 Politecnico di Torino 1 Basic concepts HTML: HyperText Markup
More informationHTML Element A pair of tags and the content these include are known as an element
HTML Tags HTML tags are used to mark-up HTML elements. HTML tags are surrounded by the two characters < and >. The surrounding characters are called angle brackets HTML tags are not case sensitive,
More informationWorld Wide Web. Before WWW
FEUP, João Neves World Wide Web Joao.Neves@fe.up.pt CAcer t WoT User Digitally signed by CAcert WoT User DN: cn=cacert WoT User, email=joao.neves@i nescporto.pt, email=b2d718a54c3 83ce1a9d48aa87e2ef 687ee8769f0
More informationCommon Gateway Interface CGI
Common Gateway Interface CGI Copyright (c) 2013-2015 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2
More informationProduced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar
Mobile Application Development Higher Diploma in Science in Computer Science Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology
More information1.1 A Brief Intro to the Internet
1.1 A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For ARPA-funded research organizations - BITnet, CSnet - late 1970s & early 1980s - email and
More informationSCHULICH MEDICINE & DENTISTRY Website Updates August 30, Administrative Web Editor Guide v6
SCHULICH MEDICINE & DENTISTRY Website Updates August 30, 2012 Administrative Web Editor Guide v6 Table of Contents Chapter 1 Web Anatomy... 1 1.1 What You Need To Know First... 1 1.2 Anatomy of a Home
More informationNotes beforehand... For more details: See the (online) presentation program.
Notes beforehand... Notes beforehand... For more details: See the (online) presentation program. Topical overview: main arcs fundamental subjects advanced subject WTRs Lecture: 2 3 4 5 6 7 8 Today: the
More informationWeb technologies. Web. basic components. embellishments in browser. DOM (document object model)
Web technologies DOM (document object model) what's on the page and how it can be manipulated forms / CGI (common gateway interface) extract info from a form, create a page, send it back server side code
More informationJavascript, Java, Flash, Silverlight, HTML5 (animation, audio/video, ) Ajax (asynchronous Javascript and XML)
Web technologies browser sends requests to server, displays results DOM (document object model): structure of page contents forms / CGI (common gateway interface) client side uses HTML/CSS, Javascript,
More informationHow A Website Works. - Shobha
How A Website Works - Shobha Synopsis 1. 2. 3. 4. 5. 6. 7. 8. 9. What is World Wide Web? What makes web work? HTTP and Internet Protocols. URL s Client-Server model. Domain Name System. Web Browser, Web
More information162 HW2. David Culler, Arka Bhattacharya, William Liu. September 2014
162 HW2 David Culler, Arka Bhattacharya, William Liu September 2014 Contents 1 Introduction 2 1.1 Setup Details........................................... 2 1.2 Structure of HTTP Request...................................
More informationCGI Subroutines User's Guide
FUJITSU Software NetCOBOL V11.0 CGI Subroutines User's Guide Windows B1WD-3361-01ENZ0(00) August 2015 Preface Purpose of this manual This manual describes how to create, execute, and debug COBOL programs
More informationEE 122: HyperText Transfer Protocol (HTTP)
Background EE 122: HyperText Transfer Protocol (HTTP) Ion Stoica Nov 25, 2002 World Wide Web (WWW): a set of cooperating clients and servers that communicate through HTTP HTTP history - First HTTP implementation
More informationHTTP Reading: Section and COS 461: Computer Networks Spring 2013
HTTP Reading: Section 9.1.2 and 9.4.3 COS 461: Computer Networks Spring 2013 1 Recap: Client-Server Communication Client sometimes on Initiates a request to the server when interested E.g., Web browser
More informationHypertext Transport Protocol
Hypertext Transport Protocol HTTP Hypertext Transport Protocol Language of the Web protocol used for communication between web browsers and web servers TCP port 80 HTTP - URLs URL Uniform Resource Locator
More informationIntroduction to Internet, Web, and TCP/IP Protocols SEEM
Introduction to Internet, Web, and TCP/IP Protocols SEEM 3460 1 Local-Area Networks A Local-Area Network (LAN) covers a small distance and a small number of computers LAN A LAN often connects the machines
More informationGrapevine web hosting user manual. 12 August 2005
Grapevine web hosting user manual 12 August 2005 Grapevine web hosting user manual 2 Contents Contents... 2 Introduction... 4 System features... 4 How it looks... 5 Main navigation... 5 Reports... 6 Web
More informationWeb, HTTP and Web Caching
Web, HTTP and Web Caching 1 HTTP overview HTTP: hypertext transfer protocol Web s application layer protocol client/ model client: browser that requests, receives, displays Web objects : Web sends objects
More informationAPPLICATION LAYER APPLICATION LAYER : DNS, HTTP, , SMTP, Telnet, FTP, Security-PGP-SSH.
APPLICATION LAYER : DNS, HTTP, E-mail, SMTP, Telnet, FTP, Security-PGP-SSH. To identify an entity, the Internet used the IP address, which uniquely identifies the connection of a host to the Internet.
More informationDeveloping a Basic Web Site
Developing a Basic Web Site Creating a Chemistry Web Site 1 Objectives Define links and how to use them Create element ids to mark specific locations within a document Create links to jump between sections
More informationM3-R3: INTERNET AND WEB DESIGN
M3-R3: INTERNET AND WEB DESIGN NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the TEAR-OFF ANSWER
More informationApplication Protocols and HTTP
Application Protocols and HTTP 14-740: Fundamentals of Computer Networks Bill Nace Material from Computer Networking: A Top Down Approach, 6 th edition. J.F. Kurose and K.W. Ross Administrivia Lab #0 due
More informationCGI Architecture Diagram. Web browser takes response from web server and displays either the received file or error message.
What is CGI? The Common Gateway Interface (CGI) is a set of standards that define how information is exchanged between the web server and a custom script. is a standard for external gateway programs to
More informationConnecting with Computer Science Chapter 5 Review: Chapter Summary:
Chapter Summary: The Internet has revolutionized the world. The internet is just a giant collection of: WANs and LANs. The internet is not owned by any single person or entity. You connect to the Internet
More informationBSc Year 2 Data Communications Lab - Using Wireshark to View Network Traffic. Topology. Objectives. Background / Scenario
BSc Year 2 Data Communications Lab - Using Wireshark to View Network Traffic Topology Objectives Part 1: (Optional) Download and Install Wireshark Part 2: Capture and Analyze Local ICMP Data in Wireshark
More informationWorld-Wide Web Protocols CS 571 Fall Kenneth L. Calvert All rights reserved
World-Wide Web Protocols CS 571 Fall 2006 2006 Kenneth L. Calvert All rights reserved World-Wide Web The Information Universe World-Wide Web structure: hypertext Nonlinear presentation of information Key
More informationCreating and Building Websites
Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 7 Slide 1 of 25 Week 7 Unfinished
More informationSpring 2014 Interim. HTML forms
HTML forms Forms are used very often when the user needs to provide information to the web server: Entering keywords in a search box Placing an order Subscribing to a mailing list Posting a comment Filling
More informationReview of Previous Lecture
Review of Previous Lecture Network access and physical media Internet structure and ISPs Delay & loss in packet-switched networks Protocol layers, service models Some slides are in courtesy of J. Kurose
More informationProgramming the Web 06CS73 INTRODUCTION AND OVERVIEW. Dr. Kavi Mahesh, PESIT, Bangalore. Textbook: Programming the World Wide Web
Programming the Web 06CS73 INTRODUCTION AND OVERVIEW Dr. Kavi Mahesh, PESIT, Bangalore Textbook: Programming the World Wide Web Introduction: Internet and World-Wide Web Internet History Internet Protocols
More informationEDA095 HTTP. Pierre Nugues. March 30, Lund University
EDA095 HTTP Pierre Nugues Lund University http://cs.lth.se/pierre_nugues/ March 30, 2017 Covers: Chapter 6, Java Network Programming, 4 rd ed., Elliotte Rusty Harold Pierre Nugues EDA095 HTTP March 30,
More informationEEC-682/782 Computer Networks I
EEC-682/782 Computer Networks I Lecture 20 Wenbing Zhao w.zhao1@csuohio.edu http://academic.csuohio.edu/zhao_w/teaching/eec682.htm (Lecture nodes are based on materials supplied by Dr. Louise Moser at
More informationApplication Layer: The Web and HTTP Sec 2.2 Prof Lina Battestilli Fall 2017
CSC 401 Data and Computer Communications Networks Application Layer: The Web and HTTP Sec 2.2 Prof Lina Battestilli Fall 2017 Outline Application Layer (ch 2) 2.1 principles of network applications 2.2
More informationchapter 7 Interacting with Users Tell me and I will forget. Show me and I will remember. Involve me and I will understand.
chapter 7 Interacting with Users Tell me and I will forget. Show me and I will remember. Involve me and I will understand. Aristotle In this chapter, you will learn how to: Define the elements of an HTML
More information:
CS200 Assignment 5 HTML and CSS Due Monday February 11th 2019, 11:59 pm Readings and Resources On the web: http://validator.w3.org/ : a site that will check a web page for faulty HTML tags http://jigsaw.w3.org/css-validator/
More informationCMSC 332 Computer Networking Web and FTP
CMSC 332 Computer Networking Web and FTP Professor Szajda CMSC 332: Computer Networks Project The first project has been posted on the website. Check the web page for the link! Due 2/2! Enter strings into
More informationYou can also set the expiration time of the cookie in another way. It may be easier than using seconds.
What is a Cookie? A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will
More informationHow the Web Works. Chapter 1. Modified by Marissa Schmidt Pearson
How the Web Works Chapter 1 Modified by Marissa Schmidt 2015 Pearson Fundamentals ofhttp://www.funwebdev.com Web Development Objectives 1 Definitions and History 2 Internet Protocols 3 Client-Server Model
More informationElectronic Mail Paradigm
Electronic Mail Paradigm E-mail uses the client-server model. E-mail was designed as an electronic extension of the old paper office memo. - A quick and easy means of low-overhead written communication.
More informationKE Texpress Texhtml Guide
KE Texpress Texhtml Guide KE Software Pty Ltd Copyright 1993-2004 KE Software Pty Ltd This work is copyright and may not be reproduced except in accordance with the provisions of the Copyright Act. Contents
More information