CSE 4225 Network Programming - Google Sites

1 downloads 115 Views 799KB Size Report
Apr 15, 2003 - ... libwww/2.1.4. • Host: www.cafeaulait.org. • \r\n\r\n. Spring'15. CSE 4225 | Network Programming.
CSE 4225 Network Programming Lecture 4: Socket & Port Application Protocol

Spring – 2015 Solaiman Salvi

Spring'15

CSE 4225 | Network Programming

2

Spring'15

CSE 4225 | Network Programming

3

Spring'15

CSE 4225 | Network Programming

4

Spring'15

CSE 4225 | Network Programming

5

Application Layer Protocols URL, WWW and HTTP

Spring'15

CSE 4225 | Network Programming

7

URL

Some common URL schemes.

Spring'15

CSE 4225 | Network Programming

9

Spring'15

CSE 4225 | Network Programming

10

• • • •

GET /index.html HTTP/1.0 Keyword: Value GET /index.html HTTP/1.0 Accept: text/html, text/plain, image/gif, image/jpeg • User-Agent: Lynx/2.4 libwww/2.1.4 • Host: www.cafeaulait.org • \r\n\r\n Spring'15

CSE 4225 | Network Programming

11

Spring'15

CSE 4225 | Network Programming

12

• • • • • • •

HTTP/1.1 200 OK Date: Mon, 15 Sep 2003 21:06:50 GMT Server: Apache/2.0.40 (Red Hat Linux) Last-Modified: Tue, 15 Apr 2003 17:28:57 GMT Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-length: 107

• • • • • • • • • •

A Sample HTML file The rest of the document goes here

Spring'15

CSE 4225 | Network Programming

13

Spring'15

CSE 4225 | Network Programming

14

Spring'15

CSE 4225 | Network Programming

15

Spring'15

CSE 4225 | Network Programming

16

Spring'15

CSE 4225 | Network Programming

17

Slides: • https://sites.google.com/site/salvisolaiman/co urses/spring-2015/cse-4225 References: • JNP Chapter 3 • FTP1.jpg & FTP2.jpg

Spring'15

CSE 4225 | Network Programming

18