lecture2

lecture2 - CSE 135 Server Side Web Languages Lecture # 2...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 135 Server Side Web Languages Lecture # 2 HTTP Overview Saturday, July 31, 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 2 It’s all about the network… • If you want to really do Web programming right you will need to know the ins and outs of HTTP – If the network has problems you/users have problems much more than you are probably aware • Sadly most don’t know as much as they think they do – easily demoed by perf and security problems – A few tests • URLs – case sensitive? Length? • GET vs POST? • Cookies • “Layer 8” Error Correction – the meat layer Saturday, July 31, 2010
Background image of page 2
CSE 135 Server Side Web Languages Lecture # 2 HTTP Intro • HTTP (Hyper Text Transfer Protocol) It’s an application layer protocols similar to SMTP, POP, IMAP, NNTP, FTP, etc. Simple protocol that defines the standard way that clients request data from Web servers and how these server respond Typically it is running on top of TCP/IP • Three versions have been used (0.9,1.0,1.1) and two are still commonly used RFC 1945 HTTP 1.0 (1996) RFC 2616 HTTP 1.1 (1999) Saturday, July 31, 2010
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 2 HTTP and TCP/IP Network Interfaces HTTP TCP IP Application Layer Transport Layer Network Layer Data Link Layer HTTP sits atop the TCP/IP Protocol Stack Saturday, July 31, 2010
Background image of page 4
CSE 135 Server Side Web Languages Lecture # 2 HTTP and TCP/IP, contd. • IP provides packets that are routed based on source and destination IP addresses • TCP provides segments that ride inside the IP packets and add connection information based on source and destination ports – The ports let TCP carry multiple protocols that connect services running on default ports • HTTP on port 80 • HTTP with SSL (HTTPS) on port 443 • FTP on port 21 • SMTP on port 25 • SSH on port 22 Saturday, July 31, 2010
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 2 HTTP and TCP/IP, contd. • TCP also provides mechanisms to make the connection a reliable bit pipe – 3-way handshake, sequence numbers, checksums, control flags – A data stream is chopped up into chunks that are reassembled, complete and in correct order on the other endpoint of the connection • TCP segments, riding inside IP packets, carry the chunks of data – When HTTP is the Application Layer protocol on top of the stack, these chunks of data are the contents of the HTTP Message Saturday, July 31, 2010
Background image of page 6
CSE 135 Server Side Web Languages Lecture # 2 HTTP over TCP/IP Examples GET /index.html HTTP/1.1<CRLF> Host: www.hostname.com Con… HTTP Message’s data stream is chopped up into chunks small enough to fit in a TCP segment The segments are shipped to the right destination inside IP datagrams The chunks ride inside TCP segments used to reassemble them correctly on the other end of the connection Saturday, July 31, 2010
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 2 HTTP over TCP/IP Issues? • HTTP/1.0 opens and closes a new TCP connection for
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/10/2010 for the course CSE CSE135 taught by Professor Powell during the Summer '10 term at UCSD.

Page1 / 112

lecture2 - CSE 135 Server Side Web Languages Lecture # 2...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online