Chapter 22

Internet Networking


Chapter Goals

Internet

Physical Media

Data Transmission

 

Two Types of Information

Network Protocol

Sending Data from A to B across the Internet

Two Computers Communicating across the Internet

Two Computers Communicating across the Internet

Destination Address

Domain Naming Service

Packets

Transmission Control Protocol

TCP's Job

Port Numbers

Port Numbers

Contents of TCP Packet

The OSI Reference Model

OSI Reference Model

Application Level Protocol

Hypertext Transfer Protocol

Browser Steps

Browser Steps

Browser Steps

Browser Steps

Telnet

Telnet

Web Server Response in Telnet

Web response in Telnet

HTTP Commands

HTTP Commands

Client Program - Sockets

Client Program - Input and Output Streams

Client and Server Sockets

Client and Server Sockets

Client Program - Readers and Writers

Client Program - WebGet

File WebGet.java

A Server Program

Simple Bank Access Protocol

Simple Bank Access Protocol

A Server Program

Server Program - Readers and Writers

Server Program

Server Program

Server Program

Server Program

To Try Out Server Program

Using the Telnet Program to Connect to the BankServer

Telnet session

File BankServer.java

File BankService.java

File BankClient.java

URLConnection Class

URL Connections

URL Connections

HTTP Commands

command
request properties
blank line

URLConnection Class

Server Response

status line containing response code 
response parameters
blank line

Retrieving Response Code and Message

Retrieve Other Response Information from URLConnection

File URLGet.java

Dynamic Content

Request for Web Page with Dynamic Content

Form Data

GET

Encoding

POST

POST

POST

PostZipQuery.java

File PostZipQuery.java