Web Clients - SNS Courseware

13
Web Clients !Basic Browser Functions !URLs !User-Controllable Features !Additional Functionality S Prabhavathi AP/IT 1

Transcript of Web Clients - SNS Courseware

Page 1: Web Clients - SNS Courseware

• Web Clients ! Basic Browser Functions ! URLs ! User-Controllable Features ! Additional Functionality

S Prabhavathi AP/IT

1

Page 2: Web Clients - SNS Courseware

Web Clients •  A web client is a software that accesses a web server by

sending an HTTP request message and processing the resulting HTTP response.

•  Examples of web client software

" Web browsers " text-only browsers " browsers running on cell phones " software robots used to automatically crawl the Web and

download information for use by search engines (and, unfortunately, e-mail spammers).

•  Any web client that is designed to directly support user access to web servers is known as a user agent.

2

Page 3: Web Clients - SNS Courseware

Web Browsers

•  First graphical browser running on general-purpose platforms: Mosaic (1993)

•  Microsoft Internet Explorer (IE) browser, which was originally

based on Mosaic. •  Other browsers: Mozilla(open source)- runs on linux,

Windows, Macintosh. Firefox, Opera, Safari, Chrome. 3

Page 4: Web Clients - SNS Courseware

Web Browsers

4

Page 5: Web Clients - SNS Courseware

5

Page 6: Web Clients - SNS Courseware

Web Browsers

6

•  Primary tasks: – Convert web addresses (URL’s) to HTTP requests – Use DNS to get IP address – Establish TCP connection – Communicate with web servers(HTTP request) via

HTTP – Render (appropriately display) documents returned

by a server

Page 7: Web Clients - SNS Courseware

HTTP URL’s

7

•  Browser uses authority to connect via TCP •  Request-URI included in start line (/ used for path if none

supplied) •  The query portion of a URL was to pass search terms to a web

server. •  If both the path and query are missing from a URL, then the

Request-URI must be set to /, which is known as the root path. •  Fragment identifier not sent to server (used to scroll browser

client area)

Page 8: Web Clients - SNS Courseware

8

•  Browser would send a HTTP request for the above URL as

•  GET /a/b/c.txt?t=win&s=chess HTTP/1.1 •  ... •  Host: www.example.org:56789 •  ...

Page 9: Web Clients - SNS Courseware

User-Controllable Features

9

•  Graphical browsers also provide many user-controllable features, including:

•  Standard features –  Save web page to disk –  Find string in page –  Fill forms automatically (passwords, billing address, …) –  Set preferences (language, character set, cache and HTTP

parameters) –  Modify display style (e.g., increase font sizes) –  Display raw HTML and HTTP header info (e.g., Last-

Modified) –  Choose browser themes (skins) –  View history of web addresses visited –  Bookmark favorite pages for easy return

Page 10: Web Clients - SNS Courseware

10

Set Preferences

Page 11: Web Clients - SNS Courseware

Additional functionality

11

•  Automatic URL completion •  Script execution(programs for validating data) •  Event handling (mouse clicks) •  Management of form GUI (text, buttons) •  Secure communication(encodes sensitive

information) •  Plug-in execution (non html documents-pdf)

Page 12: Web Clients - SNS Courseware

Automatic URL Completion

12

Page 13: Web Clients - SNS Courseware

13

End of Web Clients