Web Programming

World-Wide Web
(Tim Berners-Lee & Cailliau ’92)

Topics

HTTP
Hypertext Transfer Protocol

HTTP Usage

From the RFC

Transport Independence

Request - Response

Well Known Address

HTTP Versions

HTTP 1.0+ Request

Request Line

Request Method

Methods

Methods (cont.)

More Methods

Common Usage

URI: Uniform Resource Identifier

URI Usage

HTTP Version Number

The Header Lines

Headers

Example HTTP Headers

End of the Headers

POST

Example GET Request

Slide 27

Typical Method Usage

HTTP Response

Response Status Line

Status Codes

Example Status Lines

Response Headers

Response Header Examples

Content

Single Request/Reply

Persistent Connections

Try it with telnet

HTTP Proxy Server

Tyba: A simple (and incomplete) HTTP Server Implementation in Java

Server-Side Programming

Web Server Architecture
(Berners-Lee & Cailliau ’92)

Request Method: Get

/program/finger?hollingd

Simple GET queries - ISINDEX

ISINDEX Example

URL-encoding

More URL encoding

URL Encoding in Java

URL Decoding in Java

Beyond ISINDEX - Forms

Form Fields

Form fields and encoding

HTML Forms

An HTML Form

What the server will get

HTTP Method: POST

GET vs. POST

HTML Form using POST

Server reading POST

HTML Forms (in more detail)

Form Elements

FORM Method

Sample POST
Request

Form ACTION
attribute

<FORM>
Tag Examples

Inside a form

Form Fields

Input Fields

Input Attributes

TEXT Fields

TEXT INPUT
 Examples

An example form

Submission
Buttons

Reset Buttons

A Complete
Form Example

Tables and Forms

Table/Form example

Other Inputs

Checkbox example

Radio Buttons

Radio Button
Example

Multiline Text

TEXTAREA
Attributes

TEXTAREA example

Form Submission

Input
Submissions

Other Form
Field Types

Hidden
Fields

Hidden does not
mean secure!