Uniform Resource Locators

Slides:



Advertisements
Similar presentations
Introduction to Computing Using Python CSC Winter 2013 Week 8: WWW and Search  World Wide Web  Python Modules for WWW  Web Crawling  Thursday:
Advertisements

HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July.
CS 142 Lecture Notes: URLs and LinksSlide 1 Uniform Resource Locators (URLs) Scheme Host Name.
CS 142 Lecture Notes: HTTPSlide 1 HTTP Request GET /index.html HTTP/1.1 Host: User-Agent: Mozilla/5.0 Accept: text/html, */* Accept-Language:
Client, Server, HTTP, IP Address, Domain Name. Client-Server Model Client Bob Yahoo Server yahoo.com/finance.html A text file named finance.html.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
Web technologies and programming cse hypermedia and multimedia technology Fanis Tsandilas April 3, 2007.
Web Architecture Dr. Frank McCown Intro to Web Science Harding University This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
2: Application Layer1 CS 4244: Internet Software Development Dr. Eli Tilevich.
CS 190 Lecture Notes: Tweeter ProjectSlide 1 Uniform Resource Locators (URLs) Scheme Host.
1-1 HTTP request message GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr request.
Form Data Encoding GET – URL encoded POST – URL encoded
Appendix E: Overview of HTTP ©SoftMoore ConsultingSlide 1.
WEB SERVER Mark Kimmet Shana Blair. The Project Web Server Application  Receives request for web pages or images from a client browser via the internet.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
Lecture # 1 By: Aftab Alam Department Of Computer Science University Of Peshawar Internet Programming.
What’s Really Happening
Building Your Very Own Web Server
Application Layer Dr. Adil Yousif Lecture 2 CS.
Block 5: An application layer protocol: HTTP
Building Web Apps with Servlets
Web Basics: HTML and HTTP
CS320 Web and Internet Programming Generating HTTP Responses
Content from Python Docs.
HTTP – An overview.
The Hypertext Transfer Protocol
1993 version of Mosaic browser.
Computing with C# and the .NET Framework
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
HTTP Protocol Specification
Hypertext Transfer Protocol
Introduction Web Environments
Networking with Java 2.
HTTP Protocol.
Application HTTP.
Uniform Resource Locators
WEB API.
Clients and Servers 19-Nov-18.
CS320 Web and Internet Programming Cookies and Session Tracking
Clients and Servers 1-Dec-18.
HTTP Request Method URL Protocol Version GET /index.html HTTP/1.1
لایه ی کاربرد مظفر بگ محمدی 2: Application Layer.
Uniform Resource Locators (URLs)
CS3220 Web and Internet Programming Cookies and Session Tracking
Hypertext Transfer Protocol
CS 5565 Network Architecture and Protocols
Hypertext Transfer Protocol (HTTP)
CS3220 Web and Internet Programming Handling HTTP Requests
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Kevin Harville Source: Webmaster in a Nutshell, O'Rielly Books
The Application Layer: HTTP
CS3220 Web and Internet Programming Cookies and Session Tracking
Socket Programming 2: Application Layer.
Application Layer Part 1
HTTP Hypertext Transfer Protocol
Web APIs API = Application Programmer Interface
Uniform Resource Locators (URLs)
CSCI-351 Data communication and Networks
Clients and Servers 19-Jul-19.
MSc Internet Computing
Clients and Servers 13-Sep-19.
Presentation transcript:

Uniform Resource Locators Scheme Port Number Query http://localhost:8080/friendships/create?my_id=100&user_id=200 Host Name Hierarchical portion CS 190 Lecture Notes: HTTP Design Exercise

CS 190 Lecture Notes: HTTP Design Exercise HTTP GET Request Method URL Protocol Version GET /statuses/user_timeline?my_id=100 HTTP/1.1 Host: www.example.com User-Agent: Mozilla/5.0 Accept: text/html, */* Accept-Language: en-us Accept-Charset: ISO-8859-1,utf-8 Connection: keep-alive blank line Headers Body (empty) CS 190 Lecture Notes: HTTP Design Exercise

CS 190 Lecture Notes: HTTP Design Exercise HTTP POST Response Version Status Status Message HTTP/1.1 200 OK Date: Thu, 24 Jul 2008 17:36:27 GMT Server: Tweeter/1.0 Content-Type: application/json;charset=UTF-8 Content-Length: 266 blank line {"tweets": [{"id": 20006, "user": 100, "time": "Mon Oct 27 18:02:57 PDT 2014", "text": "I’m at home now"}, ... ] } Headers Body CS 190 Lecture Notes: HTTP Design Exercise

CS 190 Lecture Notes: HTTP Design Exercise Example Requests POST /friendships/create?my_id=100&user_id=200 User 100 becomes a follower of user 200 POST /friendships/destroy?my_id=100&user_id=200 User 100 is no longer a follower of user 200 GET /friends/ids.json?user_id=100 Return ids for all users that user 100 is following: [100, 84, 290, 16] POST /statuses/update?my_id=100&status=Sleepy Create a new tweet for user 100 CS 190 Lecture Notes: HTTP Design Exercise

CS 190 Lecture Notes: HTTP Design Exercise Java Network APIs serverSocket = new ServerSocket(portNumber); Open a socket for server to accept connections Containing application provides the port number socket = serverSocket.accept(); reader = new InputStreamReader( socket.getInputStream()); Wait for next incoming connection socket.close() Close specific connection to client All socket calls can throw IOException CS 190 Lecture Notes: HTTP Design Exercise