Uniform Resource Locators (URLs)

Slides:



Advertisements
Similar presentations
Simple Object Access Protocol (SOAP) v1.1 CS-328 Dick Steflik.
Advertisements

Introduction to Computing Using Python CSC Winter 2013 Week 8: WWW and Search  World Wide Web  Python Modules for WWW  Web Crawling  Thursday:
XML in the real world (2) SOAP. What is SOAP? ► SOAP stands for Simple Object Access Protocol ► SOAP is a communication protocol ► SOAP is for communication.
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
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 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.
CS 190 Lecture Notes: Tweeter ProjectSlide 1 Uniform Resource Locators (URLs) Scheme Host.
HTTP1 Hypertext Transfer Protocol (HTTP) After this lecture, you should be able to:  Know how Web Browsers and Web Servers communicate via HTTP Protocol.
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 Technologies Lecture 1 The Internet and HTTP.
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
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
Web Development Web Servers.
How does it work ?.
1993 version of Mosaic browser.
EMBEDDED WEB TECHNOLOGY
Computing with C# and the .NET Framework
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
HTTP Protocol Specification
Hypertext Transfer Protocol
Client / Session Identification Cookies
Introduction Web Environments
HTTP Protocol.
Application HTTP.
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
Uniform Resource Locators
WEB API.
Hypertext Transfer Protocol
CS320 Web and Internet Programming Cookies and Session Tracking
Uniform Resource Locators (URLs)
HTTP Request Method URL Protocol Version GET /index.html HTTP/1.1
Hypertext Transfer Protocol
Uniform Resource Locators (URLs)
CS3220 Web and Internet Programming Cookies and Session Tracking
Hypertext Transfer Protocol
EE 122: HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol (HTTP)
CS3220 Web and Internet Programming Handling HTTP Requests
Chengyu Sun California State University, Los Angeles
Hypertext Transfer Protocol
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 HTTP Protocol COSC 2206 Internet Tools The HTTP Protocol
The Application Layer: HTTP
Uniform Resource Locators
CS3220 Web and Internet Programming Cookies and Session Tracking
Application Layer Part 1
HTTP Hypertext Transfer Protocol
Web APIs API = Application Programmer Interface
Hypertext Transfer Protocol
CSCI-351 Data communication and Networks
MSc Internet Computing
Website Hacking Unit 1: The Basics.
Presentation transcript:

Uniform Resource Locators (URLs) Scheme Port Number Query http://localhost:8080/friendships/create?my_id=100&user_id=200 Host Name Hierarchical portion CS 190 Lecture Notes: Tweeter Project

CS 190 Lecture Notes: Tweeter Project 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: Tweeter Project

CS 190 Lecture Notes: Tweeter Project HTTP 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",}, {"id": 20005, "user": 100, "time": "Mon Oct 27 17:33:57 PDT 2014", "text": "Stuck in traffic"} ... ] } Headers Body CS 190 Lecture Notes: Tweeter Project

CS 190 Lecture Notes: Tweeter Project HTTP POST Request Method URL Protocol Version POST /statuses/update 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 my_id=100&status=Stuck%20in%20traffic Headers Body (form data) Parameters CS 190 Lecture Notes: Tweeter Project

CS 190 Lecture Notes: Tweeter Project JSON Notation Simple values: "This is a string" 99.6 Arrays: [14, 32, "California", 1.001] Objects (named properties): {"name": "Alice", "age": 24, "salary": 145000} Nested values: {"name": "Alice", "gpa": 3.5, "friends": ["Bill", "Carol", "David"]} CS 190 Lecture Notes: Tweeter Project

CS 190 Lecture Notes: Tweeter Project Tweeter Interface 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] GET /followers/ids.json?user_id=100 Return ids for all the users following user 100: [200, 374, 82, 95, 1003] CS 190 Lecture Notes: Tweeter Project

Tweeter Interface, cont’d POST /statuses/update?my_id=100&status=Sleepy Create a new tweet for user 100 GET /statuses/user_timeline.json?my_id=100 &count=20&max_id=25000 Return the 20 most recent tweets from user 100 (exclude tweets with ids > 25000) {"tweets": [{"id": 20006, "user": 100, "time": "Mon Oct 27 18:02:57 PDT 2014", "text": "I’m at home now"}, {"id": 20005, "user": 100, "time": "Mon Oct 27 17:33:57 PDT 2014", "text": "Stuck in traffic"} ... ] } CS 190 Lecture Notes: Tweeter Project

Tweeter Interface, cont’d GET /statuses/home_timeline.json?my_id=100 &count=10&max_id=25000 Return the 20 most recent tweets from user 100 and all users followed by user 100 (exclude tweets with ids > 25000) CS 190 Lecture Notes: Tweeter Project